Resuable markup fragments with Asciidoctor

2019-08-01 01:53发布

问题:

I am writing a guide in Asciidoctor for our company. In this guide I would like to define resuable markup fragments which I can use in the document like this one:

:MUST: [small]#Must#

Although the content is verbatim copied to the resulting document. Does anyone know how to define resuable markup snippets with Asciidoctor?

回答1:

  • Includes are the easiest way to reuse content
  • Macro is an other solution, but this requires some code.

I think that my answer to "how to define own asciidoc macro" also answer your question.



标签: asciidoctor