git.iko.soy/typeable/pandoc
on master help sign in
HTML Writer: consistently use dashed class-names
8d7ce0fmb21
data/epub.css+1−1
@@ -12,7 +12,7 @@ h2.author { }
12h3.date { }
12h3.date { }
13ol.toc { padding: 0; margin-left: 1em; }
13ol.toc { padding: 0; margin-left: 1em; }
14ol.toc li { list-style-type: none; margin: 0; padding: 0; }
14ol.toc li { list-style-type: none; margin: 0; padding: 0; }
15−a.footnoteRef { vertical-align: super; }
15+a.footnote-ref { vertical-align: super; }
16em, em em em, em em em em em { font-style: italic;}
16em, em em em, em em em em em { font-style: italic;}
17em em, em em em em { font-style: normal; }
17em em, em em em em { font-style: normal; }
18
18
data/templates/default.s5+1−1
@@ -64,7 +64,7 @@ $endfor$
64</div>
64</div>
65<div class="presentation">
65<div class="presentation">
66$if(title)$
66$if(title)$
67−<div class="titleslide slide">
67+<div class="title-slide slide">
68 <h1 class="title">$title$</h1>
68 <h1 class="title">$title$</h1>
69$if(subtitle)$
69$if(subtitle)$
70 <h2 class="subtitle">$subtitle$</h2>
70 <h2 class="subtitle">$subtitle$</h2>
src/Text/Pandoc/Writers/HTML.hs+3−3
@@ -438,7 +438,7 @@ elementToHtml slideLevel opts (Sec level num (id',classes,keyvals) title' elemen
438 [] -> []
438 [] -> []
439 (x:xs) -> x ++ concatMap inDiv xs
439 (x:xs) -> x ++ concatMap inDiv xs
440 let inNl x = mconcat $ nl opts : intersperse (nl opts) x ++ [nl opts]
440 let inNl x = mconcat $ nl opts : intersperse (nl opts) x ++ [nl opts]
441− let classes' = ["titleslide" | titleSlide] ++ ["slide" | slide] ++
441+ let classes' = ["title-slide" | titleSlide] ++ ["slide" | slide] ++
442 ["section" | (slide || writerSectionDivs opts) &&
442 ["section" | (slide || writerSectionDivs opts) &&
443 not html5 ] ++
443 not html5 ] ++
444 ["level" ++ show level | slide || writerSectionDivs opts ]
444 ["level" ++ show level | slide || writerSectionDivs opts ]
@@ -1100,7 +1100,7 @@ inlineToHtml opts inline = do
1100 let link = H.a ! A.href (toValue $ "#" ++
1100 let link = H.a ! A.href (toValue $ "#" ++
1101 revealSlash ++
1101 revealSlash ++
1102 writerIdentifierPrefix opts ++ "fn" ++ ref)
1102 writerIdentifierPrefix opts ++ "fn" ++ ref)
1103− ! A.class_ "footnoteRef"
1103+ ! A.class_ "footnote-ref"
1104 ! prefixedId opts ("fnref" ++ ref)
1104 ! prefixedId opts ("fnref" ++ ref)
1105 $ (if isJust epubVersion
1105 $ (if isJust epubVersion
1106 then id
1106 then id
@@ -1120,7 +1120,7 @@ blockListToNote :: PandocMonad m => WriterOptions -> String -> [Block] -> StateT
1120blockListToNote opts ref blocks =
1120blockListToNote opts ref blocks =
1121 -- If last block is Para or Plain, include the backlink at the end of
1121 -- If last block is Para or Plain, include the backlink at the end of
1122 -- that block. Otherwise, insert a new Plain block with the backlink.
1122 -- that block. Otherwise, insert a new Plain block with the backlink.
1123− let backlink = [Link ("",["footnoteBack"],[]) [Str "↩"] ("#" ++ writerIdentifierPrefix opts ++ "fnref" ++ ref,[])]
1123+ let backlink = [Link ("",["footnote-back"],[]) [Str "↩"] ("#" ++ writerIdentifierPrefix opts ++ "fnref" ++ ref,[])]
1124 blocks' = if null blocks
1124 blocks' = if null blocks
1125 then []
1125 then []
1126 else let lastBlock = last blocks
1126 else let lastBlock = last blocks
test/s5-basic.html+1−1
@@ -38,7 +38,7 @@
38</div>
38</div>
39</div>
39</div>
40<div class="presentation">
40<div class="presentation">
41−<div class="titleslide slide">
41+<div class="title-slide slide">
42 <h1 class="title">My S5 Document</h1>
42 <h1 class="title">My S5 Document</h1>
43 <h3 class="author">Sam Smith<br/>Jen Jones</h3>
43 <h3 class="author">Sam Smith<br/>Jen Jones</h3>
44 <h4 class="date">July 15, 2006</h4>
44 <h4 class="date">July 15, 2006</h4>
test/s5-fancy.html+1−1
@@ -239,7 +239,7 @@
239</div>
239</div>
240</div>
240</div>
241<div class="presentation">
241<div class="presentation">
242−<div class="titleslide slide">
242+<div class="title-slide slide">
243 <h1 class="title">My S5 Document</h1>
243 <h1 class="title">My S5 Document</h1>
244 <h3 class="author">Sam Smith<br/>Jen Jones</h3>
244 <h3 class="author">Sam Smith<br/>Jen Jones</h3>
245 <h4 class="date">July 15, 2006</h4>
245 <h4 class="date">July 15, 2006</h4>
test/writer.html4+8−8
@@ -524,25 +524,25 @@ Blah
524<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
524<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
525<hr />
525<hr />
526<h1 id="footnotes">Footnotes</h1>
526<h1 id="footnotes">Footnotes</h1>
527−<p>Here is a footnote reference,<a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a> and another.<a href="#fn2" class="footnoteRef" id="fnref2"><sup>2</sup></a> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a href="#fn3" class="footnoteRef" id="fnref3"><sup>3</sup></a></p>
527+<p>Here is a footnote reference,<a href="#fn1" class="footnote-ref" id="fnref1"><sup>1</sup></a> and another.<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a href="#fn3" class="footnote-ref" id="fnref3"><sup>3</sup></a></p>
528<blockquote>
528<blockquote>
529−<p>Notes can go in quotes.<a href="#fn4" class="footnoteRef" id="fnref4"><sup>4</sup></a></p>
529+<p>Notes can go in quotes.<a href="#fn4" class="footnote-ref" id="fnref4"><sup>4</sup></a></p>
530</blockquote>
530</blockquote>
531<ol style="list-style-type: decimal">
531<ol style="list-style-type: decimal">
532−<li>And in list items.<a href="#fn5" class="footnoteRef" id="fnref5"><sup>5</sup></a></li>
532+<li>And in list items.<a href="#fn5" class="footnote-ref" id="fnref5"><sup>5</sup></a></li>
533</ol>
533</ol>
534<p>This paragraph should not be part of the note, as it is not indented.</p>
534<p>This paragraph should not be part of the note, as it is not indented.</p>
535<div class="footnotes">
535<div class="footnotes">
536<hr />
536<hr />
537<ol>
537<ol>
538−<li id="fn1"><p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.<a href="#fnref1" class="footnoteBack">↩</a></p></li>
538+<li id="fn1"><p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.<a href="#fnref1" class="footnote-back">↩</a></p></li>
539<li id="fn2"><p>Here’s the long note. This one contains multiple blocks.</p>
539<li id="fn2"><p>Here’s the long note. This one contains multiple blocks.</p>
540<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
540<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
541<pre><code> { &lt;code&gt; }</code></pre>
541<pre><code> { &lt;code&gt; }</code></pre>
542−<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.<a href="#fnref2" class="footnoteBack">↩</a></p></li>
542+<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.<a href="#fnref2" class="footnote-back">↩</a></p></li>
543−<li id="fn3"><p>This is <em>easier</em> to type. Inline notes may contain <a href="http://google.com">links</a> and <code>]</code> verbatim characters, as well as [bracketed text].<a href="#fnref3" class="footnoteBack">↩</a></p></li>
543+<li id="fn3"><p>This is <em>easier</em> to type. Inline notes may contain <a href="http://google.com">links</a> and <code>]</code> verbatim characters, as well as [bracketed text].<a href="#fnref3" class="footnote-back">↩</a></p></li>
544−<li id="fn4"><p>In quote.<a href="#fnref4" class="footnoteBack">↩</a></p></li>
544+<li id="fn4"><p>In quote.<a href="#fnref4" class="footnote-back">↩</a></p></li>
545−<li id="fn5"><p>In list.<a href="#fnref5" class="footnoteBack">↩</a></p></li>
545+<li id="fn5"><p>In list.<a href="#fnref5" class="footnote-back">↩</a></p></li>
546</ol>
546</ol>
547</div>
547</div>
548</body>
548</body>
test/writer.html5+8−8
@@ -526,25 +526,25 @@ Blah
526<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
526<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
527<hr />
527<hr />
528<h1 id="footnotes">Footnotes</h1>
528<h1 id="footnotes">Footnotes</h1>
529−<p>Here is a footnote reference,<a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a> and another.<a href="#fn2" class="footnoteRef" id="fnref2"><sup>2</sup></a> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a href="#fn3" class="footnoteRef" id="fnref3"><sup>3</sup></a></p>
529+<p>Here is a footnote reference,<a href="#fn1" class="footnote-ref" id="fnref1"><sup>1</sup></a> and another.<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a href="#fn3" class="footnote-ref" id="fnref3"><sup>3</sup></a></p>
530<blockquote>
530<blockquote>
531−<p>Notes can go in quotes.<a href="#fn4" class="footnoteRef" id="fnref4"><sup>4</sup></a></p>
531+<p>Notes can go in quotes.<a href="#fn4" class="footnote-ref" id="fnref4"><sup>4</sup></a></p>
532</blockquote>
532</blockquote>
533<ol type="1">
533<ol type="1">
534−<li>And in list items.<a href="#fn5" class="footnoteRef" id="fnref5"><sup>5</sup></a></li>
534+<li>And in list items.<a href="#fn5" class="footnote-ref" id="fnref5"><sup>5</sup></a></li>
535</ol>
535</ol>
536<p>This paragraph should not be part of the note, as it is not indented.</p>
536<p>This paragraph should not be part of the note, as it is not indented.</p>
537<section class="footnotes">
537<section class="footnotes">
538<hr />
538<hr />
539<ol>
539<ol>
540−<li id="fn1"><p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.<a href="#fnref1" class="footnoteBack">↩</a></p></li>
540+<li id="fn1"><p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.<a href="#fnref1" class="footnote-back">↩</a></p></li>
541<li id="fn2"><p>Here’s the long note. This one contains multiple blocks.</p>
541<li id="fn2"><p>Here’s the long note. This one contains multiple blocks.</p>
542<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
542<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
543<pre><code> { &lt;code&gt; }</code></pre>
543<pre><code> { &lt;code&gt; }</code></pre>
544−<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.<a href="#fnref2" class="footnoteBack">↩</a></p></li>
544+<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.<a href="#fnref2" class="footnote-back">↩</a></p></li>
545−<li id="fn3"><p>This is <em>easier</em> to type. Inline notes may contain <a href="http://google.com">links</a> and <code>]</code> verbatim characters, as well as [bracketed text].<a href="#fnref3" class="footnoteBack">↩</a></p></li>
545+<li id="fn3"><p>This is <em>easier</em> to type. Inline notes may contain <a href="http://google.com">links</a> and <code>]</code> verbatim characters, as well as [bracketed text].<a href="#fnref3" class="footnote-back">↩</a></p></li>
546−<li id="fn4"><p>In quote.<a href="#fnref4" class="footnoteBack">↩</a></p></li>
546+<li id="fn4"><p>In quote.<a href="#fnref4" class="footnote-back">↩</a></p></li>
547−<li id="fn5"><p>In list.<a href="#fnref5" class="footnoteBack">↩</a></p></li>
547+<li id="fn5"><p>In list.<a href="#fnref5" class="footnote-back">↩</a></p></li>
548</ol>
548</ol>
549</section>
549</section>
550</body>
550</body>