Git Product home page Git Product logo

Comments (6)

jrblevin avatar jrblevin commented on June 23, 2024 1

Thanks for this suggestion. We now have support for inline footnotes (7499d28), with raised text and optionally hidden markup (669815e).

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

Thanks--I'll definitely consider it.

from markdown-mode.

zmwangx avatar zmwangx commented on June 23, 2024

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.

syohex avatar syohex commented on June 23, 2024

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))))

pandoc

I'm not sure it is better to support such markdown dialect. Because there are many markdown dialects.

from markdown-mode.

zmwangx avatar zmwangx commented on June 23, 2024

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.

syohex avatar syohex commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.