git.iko.soy/typeable/pandoc
on master help sign in
MANUAL.txt use native syntax for custom-style (#4174)
commit6ec7e39b4c525037c26f114e1db4a1afcf97daaa authorMauro Bieg <mb21@users.noreply.github.com> dateThu 21 Dec 2017, 20:56 (9 years ago) parent685e90c
1 file changed+6−6
MANUAL.txt+6−6
MANUAL.txt+6−6
@@ -4335,19 +4335,19 @@ using `div`s and `span`s, respectively.
43354335
43364336If you define a `div` or `span` with the attribute `custom-style`,
43374337pandoc will apply your specified style to the contained elements. So,
4338−for example,
4338+for example using the `bracketed_spans` syntax,
43394339
4340− <span custom-style="Emphatically">Get out,</span> he said.
4340+ [Get out]{custom-style="Emphatically"}, he said.
43414341
4342−would produce a docx file with "Get out," styled with character
4343−style `Emphatically`. Similarly,
4342+would produce a docx file with "Get out" styled with character
4343+style `Emphatically`. Similarly, using the `fenced_divs` syntax,
43444344
43454345 Dickinson starts the poem simply:
43464346
4347− <div custom-style="Poetry">
4347+ ::: {custom-style="Poetry"}
43484348 | A Bird came down the Walk---
43494349 | He did not know I saw---
4350− </div>
4350+ :::
43514351
43524352would style the two contained lines with the `Poetry` paragraph style.
43534353