jgm / djot

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

unify parsing of explicit_link and reference_link #76

Closed matklad closed 1 year ago

matklad commented 1 year ago

closes https://github.com/jgm/djot/issues/75

jgm commented 1 year ago

This looks good to me. Perhaps there was a reason for only clearing back to the second opener, but if there was, I cannot think of it now (and in that case, bad on me for not explaining it in a comment).

matklad commented 1 year ago

and in that case, bad on me for not explaining it in a comment

FWIW, I’d say a comment about how openers in general would help. It took me quite some time yesterday to unravel that.

jgm commented 1 year ago

I added a brief comment in da95d04dd13de853c67e7508da6574cec74472f0, but feel free to propose additions.