diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-05-29 12:01:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 12:01:12 -0400 |
commit | 1de7b20ebbb198362ec0b4717f72d275fb34dd9c (patch) | |
tree | 69bd3f6a022e48b8ef459121cfb33b44611a7e44 /test | |
parent | 970b820f4762096642ea9fdf2ed8c637998b26f8 (diff) | |
parent | a58304e00edc3c7d78c352c379e843cb908e6887 (diff) | |
download | pandoc-1de7b20ebbb198362ec0b4717f72d275fb34dd9c.tar.gz |
Merge pull request #5497 from mb21/html-writer-video-audio
Output HTML5 video and audio elements
Diffstat (limited to 'test')
-rw-r--r-- | test/command/2662.md | 2 | ||||
-rw-r--r-- | test/command/3450.md | 2 | ||||
-rw-r--r-- | test/command/4012.md | 2 | ||||
-rw-r--r-- | test/command/4677.md | 2 | ||||
-rw-r--r-- | test/command/5121.md | 2 | ||||
-rw-r--r-- | test/command/video-audio.md | 19 |
6 files changed, 24 insertions, 5 deletions
diff --git a/test/command/2662.md b/test/command/2662.md index 543209053..74e075c2d 100644 --- a/test/command/2662.md +++ b/test/command/2662.md @@ -7,5 +7,5 @@ :scale: 300 % :alt: alternate text ^D -<p><img src="http://url.to.image/foo.png" alt="alternate text" class="align-left" width="600" height="300" /></p> +<p><img src="http://url.to.image/foo.png" class="align-left" width="600" height="300" alt="alternate text" /></p> ``` diff --git a/test/command/3450.md b/test/command/3450.md index 5b35e1d9e..5ccfd05ff 100644 --- a/test/command/3450.md +++ b/test/command/3450.md @@ -2,7 +2,7 @@ % pandoc -fmarkdown-implicit_figures {height=2em} ^D -<p><img src="lalune.jpg" alt="image" style="height:2em" /></p> +<p><img src="lalune.jpg" style="height:2em" alt="image" /></p> ``` ``` % pandoc -fmarkdown-implicit_figures -t latex diff --git a/test/command/4012.md b/test/command/4012.md index 579ee2459..602c23219 100644 --- a/test/command/4012.md +++ b/test/command/4012.md @@ -4,5 +4,5 @@ pandoc -f markdown-implicit_figures [image]: http://example.com/image.jpg {height=35mm} ^D -<p><img src="http://example.com/image.jpg" alt="image" style="height:35mm" /></p> +<p><img src="http://example.com/image.jpg" style="height:35mm" alt="image" /></p> ``` diff --git a/test/command/4677.md b/test/command/4677.md index 11a62fd08..482db4c02 100644 --- a/test/command/4677.md +++ b/test/command/4677.md @@ -3,6 +3,6 @@ {#img:1} ^D <figure> -<img src="img.png" alt="" id="img:1" /><figcaption>Caption</figcaption> +<img src="img.png" id="img:1" alt="" /><figcaption>Caption</figcaption> </figure> ``` diff --git a/test/command/5121.md b/test/command/5121.md index 0f45c4afe..42f2fdea2 100644 --- a/test/command/5121.md +++ b/test/command/5121.md @@ -5,7 +5,7 @@ ## Header 2 ^D <figure> -<img src="./my-figure.jpg" alt="" width="500" /><figcaption>My caption</figcaption> +<img src="./my-figure.jpg" width="500" alt="" /><figcaption>My caption</figcaption> </figure> Header 2 diff --git a/test/command/video-audio.md b/test/command/video-audio.md new file mode 100644 index 000000000..451b614d8 --- /dev/null +++ b/test/command/video-audio.md @@ -0,0 +1,19 @@ +``` +% pandoc -f markdown-implicit_figures -t html + + +{width=300} + + + + + + +^D +<p><video src="./test.mp4" controls=""><a href="./test.mp4">Video</a></video></p> +<p><video src="foo/test.webm" width="300" controls=""><a href="foo/test.webm">Your browser does not support video.</a></video></p> +<p><audio src="test.mp3" controls=""><a href="test.mp3">Audio</a></audio></p> +<p><embed src="./test.pdf" /></p> +<p><img src="./test.jpg" /></p> +``` + |