asciidoctor - Multi-paragraph attribute in AsciiDoc -


i have two-paragraph text gets repeated often. how avoid repetition?

for have:

:something-1: blah blah blah + blah blah blah + blah blah blah  :something-2: blah blah blah + blah blah blah + blah blah blah 

and then:

-- {something-1}  {something-2} -- 

is there way put both paragraphs 1 attribute? better if put block attribute too.

this doesn't work:

:something: blah blah blah + blah blah blah + blah blah blah + + blah blah blah + blah blah blah + blah blah blah 

the plus on empty line , second paragraph not parsed part of attribute definition.

another option putting 2 paragraphs in separate file , using include: macro. creating separate file every time face problem create clutter. makes harder necessary go 1-paragraph definitions 2-paragraph definitions. i'd rather have single "glossary" section (or document) contains these repeated term definitions.

i don't know if multi-paragraph attributes possible, selective imports are! have glossary.asciidoc file:

tag::something[] -- blah blah blah  blah blah blah -- end::something[] 

and can import section saying:

include::glossary.asciidoc[tag=something] 

a major advantage of approach text formatting inside snippet works.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -