diff options
author | mb21 <mb21@users.noreply.github.com> | 2019-05-11 18:54:43 +0200 |
---|---|---|
committer | mb21 <mb21@users.noreply.github.com> | 2019-05-29 09:43:50 +0200 |
commit | a58304e00edc3c7d78c352c379e843cb908e6887 (patch) | |
tree | 7ff97b4bdeddb03c1fef74299be7c9e370842061 /test/command | |
parent | 47249b05c4345a40353a37f4b7f7170aa2ea5773 (diff) | |
download | pandoc-a58304e00edc3c7d78c352c379e843cb908e6887.tar.gz |
HTML writer: output video and audio elements
depending on file extension of the image path
Diffstat (limited to 'test/command')
-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 ![image](lalune.jpg){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 @@ ![Caption](img.png){#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 +![](./test.mp4) + +![Your browser does not support video.](foo/test.webm){width=300} + +![](test.mp3) + +![](./test.pdf) + +![](./test.jpg) +^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> +``` + |