Skip to content

Commit

Permalink
JATS reader: Ignore <processing-meta> element (#9057)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamoe authored Sep 4, 2023
1 parent c017bbe commit a267b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Text/Pandoc/Readers/JATS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ parseBlock (Elem e) = do
"journal-meta" -> parseMetadata e
"article-meta" -> parseMetadata e
"custom-meta" -> parseMetadata e
"processing-meta" -> return mempty
"title" -> return mempty -- processed by header
"label" -> return mempty -- processed by header
"table" -> parseTable
Expand Down
3 changes: 3 additions & 0 deletions test/jats-reader.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
"JATS-archivearticle1.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
<processing-meta base-tagset="archiving" mathml-version="3.0" table-model="xhtml" tagset-family="jats">
<restricted-by>pmc</restricted-by>
</processing-meta>
<front>
<journal-meta>
<journal-title-group>
Expand Down

0 comments on commit a267b83

Please sign in to comment.