-
-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix footnote definitions without spacing
Previously, in the below example, the second definition was parsed as a normal definition instead of a footnote definition: ```md foo[^abc] bar. foo[^xyz] bar [^abc]: Baz baz [^xyz]: Baz ``` Now, both are seen as footnote definitions. Closes GH-106.
- Loading branch information
Showing
7 changed files
with
479 additions
and
190 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
This looks like a footnote, but is in fact, a [link][^link]. | ||
This one isn't even [defined][^foo]. | ||
|
||
[^link]: <~/foo/bar.baz> | ||
|
||
[^both][invalid], [^this too][]. |
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,5 @@ | ||
foo[^abc] bar. foo[^xyz] bar | ||
|
||
[^abc]: Baz baz | ||
|
||
[^xyz]: Baz |
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
Oops, something went wrong.