epub, epub3: added header-includes, include-before, include-after.

Closes jgm/pandoc#1987.
This commit is contained in:
John MacFarlane 2015-04-07 21:09:18 -07:00
parent c3aa395c71
commit bed3f14dbc
2 changed files with 18 additions and 0 deletions

View file

@ -14,6 +14,9 @@ $endif$
$for(css)$ $for(css)$
<link rel="stylesheet" type="text/css" href="$css$" /> <link rel="stylesheet" type="text/css" href="$css$" />
$endfor$ $endfor$
$for(header-includes)$
$header-includes$
$endfor$
</head> </head>
<body$if(coverpage)$ id="cover"$endif$> <body$if(coverpage)$ id="cover"$endif$>
$if(titlepage)$ $if(titlepage)$
@ -43,7 +46,13 @@ $if(rights)$
<div class="rights">$rights$</div> <div class="rights">$rights$</div>
$endif$ $endif$
$else$ $else$
$for(include-before)$
$include-before$
$endfor$
$body$ $body$
$for(include-after)$
$include-after$
$endfor$
$endif$ $endif$
</body> </body>
</html> </html>

View file

@ -18,6 +18,9 @@ $endif$
$for(css)$ $for(css)$
<link rel="stylesheet" type="text/css" href="$css$" /> <link rel="stylesheet" type="text/css" href="$css$" />
$endfor$ $endfor$
$for(header-includes)$
$header-includes$
$endfor$
</head> </head>
<body$if(coverpage)$ id="cover"$endif$> <body$if(coverpage)$ id="cover"$endif$>
$if(titlepage)$ $if(titlepage)$
@ -49,7 +52,13 @@ $if(rights)$
$endif$ $endif$
</section> </section>
$else$ $else$
$for(include-before)$
$include-before$
$endfor$
$body$ $body$
$for(include-after)$
$include-after$
$endfor$
$endif$ $endif$
</body> </body>
</html> </html>