# Link consumes first character that follows

**URL:** https://meta.discourse.org/t/link-consumes-first-character-that-follows/45114
**Category:** Bug
**Tags:** markdown-it-review
**Created:** [2. Juni 2016 um 00:28 UTC](https://meta.discourse.org/t/link-consumes-first-character-that-follows/45114 "2016-06-02T00:28:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![frictionel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frictionel/32/299701_2.png) [@frictionel](https://meta.discourse.org/u/frictionel)
#### Post date: [2. Juni 2016 um 00:28 UTC](https://meta.discourse.org/t/link-consumes-first-character-that-follows/45114/1 "2016-06-02T00:28:31Z")

</div>

While working on my migration script I stumbled upon this weird bug:  
A link consumes the first character that follows if there is a space and then a closing bracket.

(A link follows and then a full stop: [link](http://example.com).)  
( A link follows and then a full stop: [link](http://example.com). )

You could replace the dot with a word and have the same effect.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [26. Juni 2017 um 13:58 UTC](https://meta.discourse.org/t/link-consumes-first-character-that-follows/45114/2 "2017-06-26T13:58:59Z")

</div>

Fixed per:

> [@CommonMark testing started here!](https://meta.discourse.org/t/commonmark-testing-started-here/65121):
>
> Per our [migration plans](https://meta.discourse.org/t/discourse-commonmark-migration-plans-confetti-ball-balloon), I just enabled [markdown.it](https://github.com/markdown-it/markdown-it) at Meta. It is an excellent [CommonMark](http://commonmark.org/) compliant engine. I expect quite a few edges to be found during this period of testing. Do not open bugs about the new Engine, just reply here. I/we will be updating the top post here with the list of issues and striking out stuff as it is fixed. Current known issues (to be fixed)white_check_mark Onebox vanishes after you start typing and works not-super consistently white_check_mark pending…

Rebaked to confirm 😁

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [26. Juni 2017 um 13:59 UTC](https://meta.discourse.org/t/link-consumes-first-character-that-follows/45114/3 "2017-06-26T13:59:03Z")

</div>


