git.iko.soy/typeable/pandoc
on master help sign in
MANUAL.txt use native syntax for custom-style (#4174)
6ec7e39Mauro Bieg
MANUAL.txt+6−6
@@ -4335,19 +4335,19 @@ using `div`s and `span`s, respectively.
4335
4335
4336If you define a `div` or `span` with the attribute `custom-style`,
4336If you define a `div` or `span` with the attribute `custom-style`,
4337pandoc will apply your specified style to the contained elements. So,
4337pandoc will apply your specified style to the contained elements. So,
4338−for example,
4338+for example using the `bracketed_spans` syntax,
4339
4339
4340− <span custom-style="Emphatically">Get out,</span> he said.
4340+ [Get out]{custom-style="Emphatically"}, he said.
4341
4341
4342−would produce a docx file with "Get out," styled with character
4342+would produce a docx file with "Get out" styled with character
4343−style `Emphatically`. Similarly,
4343+style `Emphatically`. Similarly, using the `fenced_divs` syntax,
4344
4344
4345 Dickinson starts the poem simply:
4345 Dickinson starts the poem simply:
4346
4346
4347− <div custom-style="Poetry">
4347+ ::: {custom-style="Poetry"}
4348 | A Bird came down the Walk---
4348 | A Bird came down the Walk---
4349 | He did not know I saw---
4349 | He did not know I saw---
4350− </div>
4350+ :::
4351
4351
4352would style the two contained lines with the `Poetry` paragraph style.
4352would style the two contained lines with the `Poetry` paragraph style.
4353
4353