git.iko.soy/typeable/pandoc
on master help sign in
epub, epub3: added header-includes, include-before, include-after.
bed3f14John MacFarlane
default.epub+9
@@ -14,6 +14,9 @@ $endif$
14$for(css)$
14$for(css)$
15 <link rel="stylesheet" type="text/css" href="$css$" />
15 <link rel="stylesheet" type="text/css" href="$css$" />
16$endfor$
16$endfor$
17+$for(header-includes)$
18+ $header-includes$
19+$endfor$
17</head>
20</head>
18<body$if(coverpage)$ id="cover"$endif$>
21<body$if(coverpage)$ id="cover"$endif$>
19$if(titlepage)$
22$if(titlepage)$
@@ -43,7 +46,13 @@ $if(rights)$
43 <div class="rights">$rights$</div>
46 <div class="rights">$rights$</div>
44$endif$
47$endif$
45$else$
48$else$
49+$for(include-before)$
50+$include-before$
51+$endfor$
46$body$
52$body$
53+$for(include-after)$
54+$include-after$
55+$endfor$
47$endif$
56$endif$
48</body>
57</body>
49</html>
58</html>
default.epub3+9
@@ -18,6 +18,9 @@ $endif$
18$for(css)$
18$for(css)$
19 <link rel="stylesheet" type="text/css" href="$css$" />
19 <link rel="stylesheet" type="text/css" href="$css$" />
20$endfor$
20$endfor$
21+$for(header-includes)$
22+ $header-includes$
23+$endfor$
21</head>
24</head>
22<body$if(coverpage)$ id="cover"$endif$>
25<body$if(coverpage)$ id="cover"$endif$>
23$if(titlepage)$
26$if(titlepage)$
@@ -49,7 +52,13 @@ $if(rights)$
49$endif$
52$endif$
50</section>
53</section>
51$else$
54$else$
55+$for(include-before)$
56+$include-before$
57+$endfor$
52$body$
58$body$
59+$for(include-after)$
60+$include-after$
61+$endfor$
53$endif$
62$endif$
54</body>
63</body>
55</html>
64</html>