Skip to content

Ambiguous definitions: footnotes without spacing #106

@quantizor

Description

@quantizor

using mdast.parse():

mdast.parse("foo[^abc] bar\n\n[^abc]: Baz", {footnotes: true});

The "Baz" portion actually is created as a regular definition and the corresponding reference at foo[^abc] is a linkReference.

However, if I add a second word to the definition, that fixes it and footerReference & footerDefinition are created as expected. e.g.

mdast.parse("foo[^abc] bar\n\n[^abc]: Baz baz", {footnotes: true});

So it seems like there might be a flaw in the parsing for footnotes that requires a sentence structure.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions