Oliver
Oliver

Reputation: 4173

Resuable markup fragments with Asciidoctor

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?

Upvotes: 2

Views: 347

Answers (1)

Jmini
Jmini

Reputation: 9497

  • 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.

Upvotes: 1

Related Questions