<p>Minimal reproducing example:</p>
<pre><code>This is displayed as normal text.
[ク](https://google.com)
This isn't.!
</code></pre>
<p>Steps to reproduce: Save it as <code>foo.md</code>, and open it in geany.  Then delete the last exclamation mark to get around <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="142467070" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/971" href="https://github.com/geany/geany/issues/971">#971</a>.</p>
<p>Expected behavior: Both normal text lines are displayed using the "normal text" style.</p>
<p>Actual behavior: The last line's style indicates that it is somehow still part of the link.  Not visible in the short example: This affects the entire rest of the document.</p>
<p>Screenshot:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/2690845/45174089-3b5a7080-b20a-11e8-83cd-fa3c49ec0c44.png"><img src="https://user-images.githubusercontent.com/2690845/45174089-3b5a7080-b20a-11e8-83cd-fa3c49ec0c44.png" alt="Screenshot of the faulty behavior" style="max-width:100%;"></a></p>
<p>Note that even before this "remove the last exclamation mark" step, one can see faulty behavior.  Specifically, the <code>T</code> is styled wrong.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1947">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ3gQvKDPLi5kCU1t5LE8BxUQEOPgks5uYVqGgaJpZM4WdYID">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJzcNWh6lA06dMlQnKhXIxZqRnu4Lks5uYVqGgaJpZM4WdYID.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Markdown: Bad recognition of link end for some unicode chars (#1947)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1947"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1947",
"url": "https://github.com/geany/geany/issues/1947",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Markdown: Bad recognition of link end for some unicode chars (#1947)",
"sections": [
{
"text": "",
"activityTitle": "**Ben Wiederhake**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@BenWiederhake",
"facts": [
{
"name": "Repository: ",
"value": "geany/geany"
},
{
"name": "Issue #: ",
"value": 1947
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1947,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1947\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1947"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 376799747\n}"
}
],
"themeColor": "26292E"
}
]</script>