Comments (6)
Thanks for this suggestion. We now have support for inline footnotes (7499d28), with raised text and optionally hidden markup (669815e).
from markdown-mode.
Thanks--I'll definitely consider it.
from markdown-mode.
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.
from markdown-mode.
You can highlight by font-lock-add-keywords
as bellow.
(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.
from markdown-mode.
You can highlight by font-lock-add-keywords as bellow.
Why? My patch already does highlighting.
I'm not sure it is better to support such markdown dialect. Because there are many markdown dialects.
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. ^[text]
is very uncommon in regular prose, so there's no surprise.
from markdown-mode.
Why? My patch already does highlighting.
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).
from markdown-mode.
Related Issues (20)
- Add support for LaTeX enviroments HOT 1
- Markdown mode leads to heavy input lag HOT 8
- [filelink](does not support spaces in filename) HOT 3
- Caret signs inside math are fontified as Markdown markup
- register yank-media-handler so we can paste images HOT 7
- Should filename links be URI-decoded? HOT 1
- Update MacPorts links in README
- tab in lists items results in invalid list indent itemization
- [Feature Suggestion] markdown-beginning/end-of-line functions
- `move-beginning-of-line` move to wrong position on heading when markdown-hide-markup is enabled HOT 1
- preserve indent-tabs-mode in markdown-edit-code-block HOT 5
- Incorrect table alignment with code block HOT 1
- Markdown hiding for links broken when text surrounded by square brackets
- resurrect emacs-26 support? HOT 2
- Bug: Angle-bracketed URLs in inline code are fontified as links
- "_" character in a variable name turns on underline HOT 1
- Wrong gfm-view-mode syntax highlight if only using *-ts-mode (tree-sitter modes) HOT 1
- v2.6 ERT test failures on wiki-link-rules and wiki-link-search-under-project with Emacs 29.1 HOT 4
- R language isn't included in markdown-gfm-recognized-languages HOT 3
- Wrong table width calculation for Unicode Combining Diacritical Marks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-mode.