mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 15:38:09 +08:00
adba9d460c
The AsciiDoc community now regards the dialect parsed by `asciidoctor` as the official AsciiDoc syntax, so it should be the target of our `asciidoc` format. Closes #8936. The `asciidoc` output format now behaves like `asciidoctor` used to. `asciidoctor` is a deprecated synonynm. For the old `asciidoc` behavior (targeting the Python script), use `asciidoc_legacy`. The templates have been consolidated. Instead of separate `default.asciidoctor` and `default.asciidoc` templates, there is just `default.asciidoc`. Text.Pandoc.Writers.AsciiDoc API changes: - `writeAsciiDoc` now behaves like `writeAsciiDoctor` used to. - `writeAsciiDoctor` is now a deprecated synonym for `writeAsciiDoc`. - New exported function `writeAsciiDocLegacy` behaves like `writeAsciDoc` used to.
44 lines
532 B
Plaintext
44 lines
532 B
Plaintext
$if(titleblock)$
|
|
= $title$
|
|
$if(author)$
|
|
$for(author)$$author$$sep$; $endfor$
|
|
$if(date)$
|
|
$date$
|
|
$endif$
|
|
$elseif(date)$
|
|
:revdate: $date$
|
|
$endif$
|
|
$if(keywords)$
|
|
:keywords: $for(keywords)$$keywords$$sep$, $endfor$
|
|
$endif$
|
|
$if(lang)$
|
|
:lang: $lang$
|
|
$endif$
|
|
$if(toc)$
|
|
:toc:
|
|
$endif$
|
|
$if(math)$
|
|
:stem: latexmath
|
|
$endif$
|
|
|
|
$endif$
|
|
$if(abstract)$
|
|
[abstract]
|
|
== Abstract
|
|
$abstract$
|
|
|
|
$endif$
|
|
$for(header-includes)$
|
|
$header-includes$
|
|
|
|
$endfor$
|
|
$for(include-before)$
|
|
$include-before$
|
|
|
|
$endfor$
|
|
$body$
|
|
$for(include-after)$
|
|
|
|
$include-after$
|
|
$endfor$
|