DocBook reader: Update list of block level tags.

This fixes #6610.
This commit is contained in:
John MacFarlane 2020-08-11 09:45:12 -07:00
parent a9da64cc3a
commit 5d4932d7ef

View file

@ -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"]