$if(titleblock)$
$title$
$for(author)$
:author: $author$
$endfor$
$if(date)$
:date: $date$
$endif$
$if(toc)$
:toc:
$endif$

$endif$
$for(header-includes)$
$header-includes$

$endfor$
$for(include-before)$
$include-before$

$endfor$
$body$
$for(include-after)$

$include-after$
$endfor$
