HTML writer: put newline btw img and caption paragraph.
This commit is contained in:
parent
9ea7164d81
commit
0eb3f8cff2
2 changed files with 3 additions and 2 deletions
|
@ -438,7 +438,7 @@ blockToHtml opts (Para [Image txt (s,'f':'i':'g':':':tit)]) = do
|
|||
then H5.figure $ mconcat
|
||||
[nl opts, img, capt, nl opts]
|
||||
else H.div ! A.class_ "figure" $ mconcat
|
||||
[nl opts, img, capt, nl opts]
|
||||
[nl opts, img, nl opts, capt, nl opts]
|
||||
blockToHtml opts (Para lst) = do
|
||||
contents <- inlineListToHtml opts lst
|
||||
return $ H.p contents
|
||||
|
|
|
@ -524,7 +524,8 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+e+'<\
|
|||
<h1 id="images">Images</h1>
|
||||
<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
|
||||
<div class="figure">
|
||||
<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" /><p class="caption">lalune</p>
|
||||
<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" />
|
||||
<p class="caption">lalune</p>
|
||||
</div>
|
||||
<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
|
||||
<hr />
|
||||
|
|
Loading…
Add table
Reference in a new issue