mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 05:43:39 +08:00
Revision line syntax is only valid in combination with an author line, so the date attribute must be set explicitly when the author is missing fixes #8637
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$
|