diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-08-18 12:41:09 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-08-18 12:41:09 -0700 |
commit | 6dce8c67601dcb89d8ff69adf83fac7d27353db2 (patch) | |
tree | d2c294030f060d1cca509ddf55eb945e4678f6a8 /src/Text/Pandoc/Process.hs | |
parent | ee88f5662bac212c416cde9b4f530d9a43f3b47c (diff) | |
download | pandoc-6dce8c67601dcb89d8ff69adf83fac7d27353db2.tar.gz |
HTML reader: improved handling of tags that can be block or inline.
Previously a section like this would be enclosed in a paragraph,
with RawInline for the video tags (since video is a tag that can
be either block or inline):
<video controls="controls">
<source src="../videos/test.mp4" type="video/mp4" />
<source src="../videos/test.webm" type="video/webm" />
<p>
The videos can not be played back on your system.<br/>
Try viewing on Youtube (requires Internet connection):
<a href="http://youtu.be/etE5urBps_w">Relative Velocity on
Youtube</a>.
</p>
</video>
This change will cause the video and source tags to be parsed
as RawBlock instead, giving better output.
The general change is this: when we're parsing a "plain" sequence
of inlines, we don't parse anything that COULD be a block-level tag.
Diffstat (limited to 'src/Text/Pandoc/Process.hs')
0 files changed, 0 insertions, 0 deletions