Semantic tagging in Markdown

后端 未结 4 570
栀梦
栀梦 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

    I know this is old but I just started to embrace Markdown and found myself asking this same question. I have a markdown document where I write notes on development, mainly C# stuff but also JavaScript and other topics. I think I came up with a pretty good solution; Simply add empty links prefixed with # to the post's title like so:

    ### My post title [#mytag]()
    

    This allows me to add as many tags as I want, which is useful when a post contains more than one topic. Needless to say, you could add tags within the post itself. Perhaps most importantly to some of us, it renders nicely!. Ideally they would be invisible but there is also an advantage to displaying them.

    Hope this helps someone.

提交回复
热议问题