git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: put newline btw img and caption paragraph.
commit0eb3f8cff2c48150e9263b17faeacb636549ccdc authorJohn MacFarlane <jgm@berkeley.edu> dateMon 15 Dec 2014, 21:49 (12 years ago) parent9ea7164
2 files changed+3−2
src/Text/Pandoc/Writers/HTML.hs+1−1 tests/writer.html+2−1
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -438,7 +438,7 @@ blockToHtml opts (Para [Image txt (s,'f':'i':'g':':':tit)]) = do
438438 then H5.figure $ mconcat
439439 [nl opts, img, capt, nl opts]
440440 else H.div ! A.class_ "figure" $ mconcat
441− [nl opts, img, capt, nl opts]
441+ [nl opts, img, nl opts, capt, nl opts]
442442blockToHtml opts (Para lst) = do
443443 contents <- inlineListToHtml opts lst
444444 return $ H.p contents
tests/writer.html+2−1
@@ -524,7 +524,8 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+e+'<\
524524<h1 id="images">Images</h1>
525525<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
526526<div class="figure">
527−<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" /><p class="caption">lalune</p>
527+<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" />
528+<p class="caption">lalune</p>
528529</div>
529530<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
530531<hr />