From b083a3c3842feaad3e4488db07da1b722df40260 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 2 Mar 2019 16:52:19 -0800 Subject: JATS reader: Support fig-group block element (#5317). --- src/Text/Pandoc/Readers/JATS.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers/JATS.hs') diff --git a/src/Text/Pandoc/Readers/JATS.hs b/src/Text/Pandoc/Readers/JATS.hs index 559d92e66..e074599eb 100644 --- a/src/Text/Pandoc/Readers/JATS.hs +++ b/src/Text/Pandoc/Readers/JATS.hs @@ -181,7 +181,10 @@ parseBlock (Elem e) = "title" -> return mempty -- processed by header "table" -> parseTable "fig" -> parseFigure - "table-wrap" -> divWith (attrValue "id" e, ["table-wrap"], []) <$> getBlocks e + "fig-group" -> divWith (attrValue "id" e, ["fig-group"], []) + <$> getBlocks e + "table-wrap" -> divWith (attrValue "id" e, ["table-wrap"], []) + <$> getBlocks e "caption" -> divWith (attrValue "id" e, ["caption"], []) <$> sect 6 "ref-list" -> parseRefList e "?xml" -> return mempty -- cgit v1.2.3