jgm / djot

A light markup language
https://djot.net
MIT License
1.67k stars 43 forks source link

Link parsing bug #36

Closed jgm closed 2 years ago

jgm commented 2 years ago
 % djot
[Beyond
Markdown](https://johnmacfarlane.net/beyond-markdown.html). (See
[Rationale](#rationale), below.)
^D
<p><a href="https://johnmacfarlane.net/beyond-markdown.html">Beyond
Markdown</a>. (See
<a href="#rationale), below.">Rationale</a></p>

Note that ", below" is parsed as part of the destination. Oddly this doesn't happen if we trim off the first link above.

jgm commented 2 years ago

Smaller test case

[a](url). (See [Rationale](#rationale), below.)