diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-08-11 09:45:12 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-08-11 09:45:12 -0700 |
commit | 5d4932d7ef8e1edec31d99661ffe8e2f4a77244f (patch) | |
tree | 986cf7c28aeda2908006683f24e2e11dff8c44b2 /src/Text/Pandoc/Readers | |
parent | a9da64cc3a7da3752f8dc3b398a8182453c934fe (diff) | |
download | pandoc-5d4932d7ef8e1edec31d99661ffe8e2f4a77244f.tar.gz |
DocBook reader: Update list of block level tags.
This fixes #6610.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/DocBook.hs | 93 |
1 files changed, 83 insertions, 10 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index b04952c27..dcdf6a764 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -628,16 +628,89 @@ isBlockElement (Elem e) = qName (elName e) `elem` blockTags isBlockElement _ = False blockTags :: [String] -blockTags = ["toc","index","para","formalpara","simpara", - "ackno","epigraph","blockquote","bibliography","bibliodiv", - "biblioentry","glossee","glosseealso","glossary", - "glossdiv","glosslist","chapter","appendix","preface","bridgehead", - "sect1","sect2","sect3","sect4","sect5","section","simplesect", - "refsect1","refsect2","refsect3","refsection", "qandadiv", - "question","answer","abstract","itemizedlist","orderedlist", - "variablelist","article","book","table","informaltable", - "informalexample", "linegroup","procedure","substeps", - "screen","programlisting","example","calloutlist"] ++ admonitionTags +blockTags = + [ "abstract" + , "ackno" + , "answer" + , "appendix" + , "appendixinfo" + , "area" + , "areaset" + , "areaspec" + , "article" + , "articleinfo" + , "attribution" + , "authorinitials" + , "bibliodiv" + , "biblioentry" + , "bibliography" + , "bibliomixed" + , "blockquote" + , "book" + , "bookinfo" + , "bridgehead" + , "calloutlist" + , "caption" + , "chapter" + , "chapterinfo" + , "epigraph" + , "example" + , "figure" + , "formalpara" + , "glossary" + , "glossaryinfo" + , "glossdiv" + , "glossee" + , "glosseealso" + , "glosslist" + , "glosssee" + , "glossseealso" + , "index" + , "info" + , "informalexample" + , "informaltable" + , "itemizedlist" + , "linegroup" + , "literallayout" + , "mediaobject" + , "orderedlist" + , "para" + , "preface" + , "procedure" + , "programlisting" + , "qandadiv" + , "question" + , "refsect1" + , "refsect1info" + , "refsect2" + , "refsect2info" + , "refsect3" + , "refsect3info" + , "refsection" + , "refsectioninfo" + , "screen" + , "sect1" + , "sect1info" + , "sect2" + , "sect2info" + , "sect3" + , "sect3info" + , "sect4" + , "sect4info" + , "sect5" + , "sect5info" + , "section" + , "sectioninfo" + , "simpara" + , "simplesect" + , "substeps" + , "subtitle" + , "table" + , "title" + , "titleabbrev" + , "toc" + , "variablelist" + ] ++ admonitionTags admonitionTags :: [String] admonitionTags = ["important","caution","note","tip","warning"] |