Markdown metadata format

后端 未结 7 1284
独厮守ぢ
独厮守ぢ 2020-12-29 18:44

Is there a standard or convention for embedding metadata in a Markdown formatted post, such as the publication date or post author for conditional rendering by the renderer?

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 19:03

    The most consistent form of metadata that I've found for Markdown is actually HTML meta tags, since most Markdown interpreters recognize HTML tags and will not render meta tags, meaning that metadata can be stored in a way that will not show up in rendered HTML.

    Hello World
    
    
    
    ## Heading
    Markdown content begins here
    

    You can try this in something like GitHub Gist or StackEdit.

提交回复
热议问题