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

Inline footnote support #227

Open
sati-bodhi opened this issue Jun 24, 2018 · 4 comments
Open

Inline footnote support #227

sati-bodhi opened this issue Jun 24, 2018 · 4 comments

Comments

@sati-bodhi
Copy link

sati-bodhi commented Jun 24, 2018

Footnotes in markdown, given by ^[Enter footnote here. ], are left without a corresponding scope, and therefore no syntax highlighting. So I presume language-markdown does not currently support footnotes in the above form.

default

Can this feature be added? I tried writing a patch myself but the ] in nested citations [@authoryear] often get mistaken to be the closing parenthesis of the footnote.

@burodepeper
Copy link
Owner

I've implemented the Markdown Extra footnotes, which have the ^ inside the square brackets, for example [^Enter footnote here], see: https://github.com/burodepeper/language-markdown/blob/master/grammars/repositories/inlines/link-label.cson

From what spec do you get your notation?

@sati-bodhi
Copy link
Author

It's from the pandoc specification for inline notes.

default

I think language-pfm does the job correctly, but it is not so consistent in picking up citation references (given by the scope reference.variable.md).

@burodepeper
Copy link
Owner

Okay. I'll have a look.

@pgtpg
Copy link

pgtpg commented May 14, 2019

I have the same problem here : ^[xxx] is not highlighted in language-markdown.

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

3 participants