Semantic tagging in Markdown

后端 未结 4 529
栀梦
栀梦 2021-02-04 13:27

I\'d like to take class notes using a simple text editor and Markdown. Is there a way to tag elements of the text to make them machine readable?

For example, I\'d like

4条回答
  •  再見小時候
    2021-02-04 13:33

    If you use Kramdwon or Maruku to parse your Markdown files you can add classes and ids to inline elements like this:

    This *word*{:.def} has to be defined. 
    → This word has to be defined.
    

    You can try it with Markdownr.

    But I guess the simpler and more practical way is to just add s and do the desired changes later on with a script. Just as proposed by Antoine Gersant.

提交回复
热议问题