Semantic tagging in Markdown

后端 未结 4 597
栀梦
栀梦 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:35

    There is no specific markdown syntax for definitions (let alone tag). You could probably use the blockquote syntax :

    > blablabla
    

    ...or you could simply emphasize the term you are about to define :

    **word** : a word is a blablabla
    

    However, html code inside markdown is syntactically correct so you could use tags with class attributes like this :

    blablabla

    In that particular case, there are HTML5 tags covering definitions :

    Coffee
    Black hot drink
    Milk
    White cold drink

提交回复
热议问题