Footnote labels may contain spaces but not newlines
hellux opened this issue · 0 comments
hellux commented
Reference labels for links or footnotes may contain spaces:
[text][link lbl]
[^footnote lbl]
[link lbl]: url
<p><a href="url">text</a>
<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<section role="doc-endnotes">
<hr>
<ol>
<li id="fn1">
<p><a href="#fnref1" role="doc-backlink">↩︎︎</a></p>
</li>
</ol>
</section>
And labels for links may contain newlines but labels for footnotes may not:
[text][link
lbl]
[^footnote
lbl]
[link lbl]: url
<p><a href="url">text</a>
[^footnote
lbl]</p>
This seems to contradict goal 7, and perhaps goal 8. If e.g. a text editor wraps the line in the middle of a footnote label it will no longer be parsed as a footnote.
Edit: meant to post this in jgm/djot.js (can issues be moved?). However, djot.lua seems to behave in the same way.