-
Notifications
You must be signed in to change notification settings - Fork 163
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
Feature request: Support for Pandoc Markdown's inline footnotes #81
Comments
Thanks--I'll definitely consider it. |
Hmm, just noticed that my regex didn't match linefeeds in footnote texts, so it didn't even pass the example above... The regex is now corrected in the original post. |
You can highlight by (font-lock-add-keywords
'markdown-mode
'(("\\(\\^\\[\\)\\([^]]+\\)\\(\\]\\)"
(1 'markdown-markup-face)
(2 'markdown-footnote-face)
(3 'markdown-markup-face)))) I'm not sure it is better to support such markdown dialect. Because there are many markdown dialects. |
Why? My patch already does highlighting.
I'm not sure either, that's why I asked "would you consider supporting this syntax?". Bottom line: Pandoc is a popular dialect, and markdown-mode already supports some Pandoc-specific features (as well as features from other dialects, e.g., multimarkdown). Those are reasons why I'm even mentioning this. Update. Actually there's another reason: it doesn't hurt. |
As I said, I'm not sure to implement this feature into markdown-mode. My snippet is highlight pandoc inline footnote syntax without changing markdown-mode code(You can highlight by putting it your init.el). |
The syntax of Pandoc Markdown's inline footnotes, per manual, is
Would you consider supporting this syntax? A quick patch to enable this would be
I haven't considered if there would be any undesirable side effects.
The text was updated successfully, but these errors were encountered: