glamour icon indicating copy to clipboard operation
glamour copied to clipboard

Relative path incorrectly prepended to footnotes

Open alerque opened this issue 4 years ago • 0 comments

Glow does not seem to understand that footnotes (Pandoc syntax) are not URLs, notably when the footnote contains just a single word:

Foo[^1] bar.

[^1]: Not a URL here.

Foo[^1] bar.

[^1]: Not a URL here.

Foo[^1] bar.

[^1]: baz

Foo^1 /home/caleb/scratch/baz bar.

Note the semantics of the input are the same in both cases, but it's handled wildly differently in each case. The latter case prepended the $PWD I executed the test from. I suspect it is just using some URL syntax that is not standard plain Markdown, but it would be nice to either disable this syntax extension completely or enable one for footnotes in this (common) format.

alerque avatar Dec 23 '19 13:12 alerque