git.iko.soy/typeable/pandoc
on master help sign in
Split epub-page.html into default.epub and default.epub3.
commitba97adf746a5573a822f9f5d744d46364814d611 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 4 Nov 2012, 21:11 (14 years ago) parent1709949
2 files changed+34−5
default.epub+29 epub-page.html → default.epub3+5−5
default.epubnew file+29
@@ -0,0 +1,29 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
4+<head>
5+<title>$pagetitle$</title>
6+$if(highlighting-css)$
7+ <style type="text/css">
8+$highlighting-css$
9+ </style>
10+$endif$
11+$for(css)$
12+ <link rel="stylesheet" type="text/css" href="$css$" />
13+$endfor$
14+</head>
15+<body>
16+$if(titlepage)$
17+ <h1 class="title">$title$</h1>
18+$for(author)$
19+ <h2 class="author">$author$</h2>
20+$endfor$
21+$if(date)$
22+ <h3 class="date">$date$</h3>
23+$endif$
24+$else$
25+$body$
26+$endif$
27+</body>
28+</html>
29+
epub-page.html → default.epub3renamed+5−5
@@ -1,5 +1,5 @@
11<?xml version="1.0" encoding="UTF-8"?>
2−<!DOCTYPE html$if(epub3)$$else$ PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"$endif$>
2+<!DOCTYPE html>
33<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
44<head>
55<title>$pagetitle$</title>
@@ -14,17 +14,17 @@ $highlighting-css$
1414 </style>
1515$endif$
1616$for(css)$
17− <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" />
17+ <link rel="stylesheet" href="$css$" />
1818$endfor$
1919</head>
2020<body>
2121$if(titlepage)$
22−<h1 class="title">$title$</h1>
22+ <h1 class="title">$title$</h1>
2323$for(author)$
24−<h2 class="author">$author$</h2>
24+ <h2 class="author">$author$</h2>
2525$endfor$
2626$if(date)$
27−<h3 class="date">$date$</h3>
27+ <h3 class="date">$date$</h3>
2828$endif$
2929$else$
3030$body$