diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-02-26 23:40:31 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-02-26 23:40:31 +0100 |
commit | 99b39ffc1726a86e6a6ad45ef6b81a28b46594ef (patch) | |
tree | 6ef2a77f1bc5c0e670f209b8ba2a4ecd1c1d480d /test | |
parent | 092c8f7732858d378f81dd2ff1f1fe16d10746ab (diff) | |
download | pandoc-99b39ffc1726a86e6a6ad45ef6b81a28b46594ef.tar.gz |
RST reader: support scale and align attributes of images.
Closes #2662.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/2662.md | 11 | ||||
-rw-r--r-- | test/rst-reader.native | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/test/command/2662.md b/test/command/2662.md new file mode 100644 index 000000000..543209053 --- /dev/null +++ b/test/command/2662.md @@ -0,0 +1,11 @@ +``` +% pandoc -t html -f rst --wrap=none +.. image:: http://url.to.image/foo.png + :align: left + :height: 100px + :width: 200 px + :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> +``` diff --git a/test/rst-reader.native b/test/rst-reader.native index bc4641a3f..724c23b03 100644 --- a/test/rst-reader.native +++ b/test/rst-reader.native @@ -223,7 +223,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa ,Header 1 ("images",[],[]) [Str "Images"] ,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"] ,Para [Image ("",[],[]) [Str "image"] ("lalune.jpg","")] -,Para [Image ("",[],[("height","2343")]) [Str "Voyage dans la Lune"] ("lalune.jpg","")] +,Para [Image ("",[],[("height","2343px")]) [Str "Voyage dans la Lune"] ("lalune.jpg","")] ,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image ("",[],[]) [Str "movie"] ("movie.jpg",""),Space,Str "icon."] ,Para [Str "And",Space,Str "an",Space,Link ("",[],[]) [Image ("",[],[]) [Str "A movie"] ("movie.jpg","")] ("/url",""),Str "."] ,Header 1 ("comments",[],[]) [Str "Comments"] |