From 38c028bd50fc3781e69370864f163f8d33fd481f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 23 Feb 2019 15:40:06 -0700 Subject: JATS reader: fix parsing of figures. This ensures that a figure containing a single image is parsed as a pandoc "implicit figure" (i.e., a Para with a single Image whose title attribute begins with `fig:`). More complex figures will still be parsed as divs. Closes #5321. --- test/command/5321.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/command/5321.md (limited to 'test/command') diff --git a/test/command/5321.md b/test/command/5321.md new file mode 100644 index 000000000..081abe2a0 --- /dev/null +++ b/test/command/5321.md @@ -0,0 +1,24 @@ +``` +% pandoc -f jats -t native + + +

bar

+ + +
+^D +[Para [Image ("fig-1",[],[]) [Str "bar"] ("foo.png","fig:")]] +``` + +``` +% pandoc -f jats -t native + + + foo +

bar

+ + +
+^D +[Para [Image ("fig-1",[],[]) [Str "foo",LineBreak,Str "bar"] ("foo.png","fig:")]] +``` -- cgit v1.2.3