diff options
author | John MacFarlane <jgm@berkeley.edu> | 2013-01-14 20:53:08 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2013-01-14 20:53:08 -0800 |
commit | 1a4b47e93368bfbd31daccdfedbd9527ee740201 (patch) | |
tree | 7045c38500930e78c9f0b4aad447a2244fbe64cc /tests/testsuite.native | |
parent | 56aa257ddb60fb5cd48f8569f66e777454859738 (diff) | |
download | pandoc-1a4b47e93368bfbd31daccdfedbd9527ee740201.tar.gz |
Implemented Ext_implicit_figures.
* In markdown reader, add a '\1' character to the beginning
of the title of an image that is alone in its paragraph,
if implicit_figures extension is selected.
* In writers, check for Para [Image alt (src,'\1':tit)] and treat
it as a figure if possible.
* Updated tests.
This is a bit of a hack, but it allows us to make implicit_figures
an extension of the markdown reader, rather than the writers.
Diffstat (limited to 'tests/testsuite.native')
-rw-r--r-- | tests/testsuite.native | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testsuite.native b/tests/testsuite.native index ec2bd08ad..cbd77f2f9 100644 --- a/tests/testsuite.native +++ b/tests/testsuite.native @@ -384,7 +384,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA ,HorizontalRule ,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 "lalune"] ("lalune.jpg","Voyage dans la Lune")] +,Para [Image [Str "lalune"] ("lalune.jpg","\SOHVoyage dans la Lune")] ,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."] ,HorizontalRule ,Header 1 ("footnotes",[],[]) [Str "Footnotes"] |