Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFM footnotes: line ending in footnote definition label causes text to disappear #282

Open
wooorm opened this issue Sep 12, 2022 · 0 comments

Comments

@wooorm
Copy link

wooorm commented Sep 12, 2022

Problem

Take for example:

[^a
b]: # c

xxx[^a
b].

Yields:

[^]: # c

xxx[^].


For some reason, the a\nb disappear from both places. I can’t imagine why that would happen?

Aside

whitespace is not allowed in footnote definitions at all. With spaces and tabs, I feel like that too is a bug, that they should be supported?

For line endings, I agree that they should not be supported in footnote definitions labels.
Reasoning being that they work as containers (just like block quotes, list items).
Containers take a slice from the start of the line.
But if those “slices” run across multiple lines, how do they mix with other containers?

* [^a]: > * b

^-- a paragraph in a list in a block quote in a definition in another list.

* [^a
* what is this? Another item? Or just part of the identifier?
b]: c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant