-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Although `Footnote` is used by mistletoe, this is incorrect because it actually refers to <https://spec.commonmark.org/0.28/#link-reference-definitions>, rather than what would generally be considered a footnote: <https://www.markdownguide.org/extended-syntax/#footnotes>. There is discussion about link definitions vs footnotes here: <https://talk.commonmark.org/t/footnote-extensions-vs-link-reference-definition/2571>.
- Loading branch information
1 parent
8777f56
commit c6a19fd
Showing
9 changed files
with
123 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/test_syntax/test_ast/test_link_references_ref_escape_strings3_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
children: | ||
- children: | ||
- content: '[ref]' | ||
type: RawText | ||
range: | ||
- 1 | ||
- 1 | ||
type: Paragraph | ||
- children: | ||
- children: | ||
- content: '[' | ||
type: RawText | ||
type: EscapeSequence | ||
- content: 'ref]: https://google.com "title"' | ||
type: RawText | ||
range: | ||
- 3 | ||
- 3 | ||
type: Paragraph | ||
footnotes: {} | ||
type: Document |
17 changes: 17 additions & 0 deletions
17
tests/test_syntax/test_ast/test_link_references_ref_first_strings0_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
children: | ||
- children: | ||
- children: | ||
- content: ref | ||
type: RawText | ||
target: https://google.com | ||
title: title | ||
type: Link | ||
range: | ||
- 1 | ||
- 1 | ||
type: Paragraph | ||
footnotes: | ||
ref: | ||
- https://google.com | ||
- title | ||
type: Document |
17 changes: 17 additions & 0 deletions
17
tests/test_syntax/test_ast/test_link_references_ref_last_strings1_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
children: | ||
- children: | ||
- children: | ||
- content: ref | ||
type: RawText | ||
target: https://google.com | ||
title: title | ||
type: Link | ||
range: | ||
- 3 | ||
- 3 | ||
type: Paragraph | ||
footnotes: | ||
ref: | ||
- https://google.com | ||
- title | ||
type: Document |
19 changes: 19 additions & 0 deletions
19
tests/test_syntax/test_ast/test_link_references_ref_syntax_strings2_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
children: | ||
- children: | ||
- children: | ||
- children: | ||
- content: syntax | ||
type: RawText | ||
type: Emphasis | ||
target: https://google.com | ||
title: title | ||
type: Link | ||
range: | ||
- 1 | ||
- 1 | ||
type: Paragraph | ||
footnotes: | ||
'*syntax*': | ||
- https://google.com | ||
- title | ||
type: Document |