GitHub MarkDown: Are Macros and Variables possible?

后端 未结 3 1265
忘了有多久
忘了有多久 2021-02-03 17:08

I\'ve been learning github markdown, I had a question about variables and macros.

is it possible to define a variable or macro to prevent repeated printing of a block of

3条回答
  •  余生分开走
    2021-02-03 17:58

    You can use a feature of Markdown called "Reference-style links".

    [link text][id] or just [link text] if link-text is unique and consist only of letters, numbers, spaces and punctuation. They are not case sensitive.

    then somewhere in the document you define what id is:

    [id]: http://example.com/whatever

    See https://github.com/biserkov/markdown-playground/blob/master/README.md and

    https://raw.githubusercontent.com/biserkov/markdown-playground/master/README.md

提交回复
热议问题