@@ -9,6 +9,484 @@ import Data.Char (isSpace)
99import Control.Monad.State
1010import Control.Applicative ((<$>))
1111
12+{-
13+
14+List of all DocBook tags, with [x] indicating implemented:
15+
16+[ ] abbrev - An abbreviation, especially one followed by a period
17+[x] abstract - A summary
18+[ ] accel - A graphical user interface (GUI) keyboard shortcut
19+[ ] ackno - Acknowledgements in an Article
20+[ ] acronym - An often pronounceable word made from the initial
21+[ ] action - A response to a user event
22+[ ] address - A real-world address, generally a postal address
23+[ ] affiliation - The institutional affiliation of an individual
24+[ ] alt - Text representation for a graphical element
25+[ ] anchor - A spot in the document
26+[ ] answer - An answer to a question posed in a QandASet
27+[ ] appendix - An appendix in a Book or Article
28+[ ] appendixinfo - Meta-information for an Appendix
29+[ ] application - The name of a software program
30+[ ] area - A region defined for a Callout in a graphic or code example
31+[ ] areaset - A set of related areas in a graphic or code example
32+[ ] areaspec - A collection of regions in a graphic or code example
33+[ ] arg - An argument in a CmdSynopsis
34+[ ] article - An article
35+[x] articleinfo - Meta-information for an Article
36+[ ] artpagenums - The page numbers of an article as published
37+[ ] attribution - The source of a block quote or epigraph
38+[ ] audiodata - Pointer to external audio data
39+[ ] audioobject - A wrapper for audio data and its associated meta-information
40+[x] author - The name of an individual author
41+[ ] authorblurb - A short description or note about an author
42+[ ] authorgroup - Wrapper for author information when a document has
43+ multiple authors or collabarators
44+[ ] authorinitials - The initials or other short identifier for an author
45+[ ] beginpage - The location of a page break in a print version of the document
46+[ ] bibliocoverage - The spatial or temporal coverage of a document
47+[ ] bibliodiv - A section of a Bibliography
48+[ ] biblioentry - An entry in a Bibliography
49+[ ] bibliography - A bibliography
50+[ ] bibliographyinfo - Meta-information for a Bibliography
51+[ ] biblioid - An identifier for a document
52+[ ] bibliolist - A wrapper for a set of bibliography entries
53+[ ] bibliomisc - Untyped bibliographic information
54+[ ] bibliomixed - An entry in a Bibliography
55+[ ] bibliomset - A cooked container for related bibliographic information
56+[ ] biblioref - A cross reference to a bibliographic entry
57+[ ] bibliorelation - The relationship of a document to another
58+[ ] biblioset - A raw container for related bibliographic information
59+[ ] bibliosource - The source of a document
60+[ ] blockinfo - Meta-information for a block element
61+[x] blockquote - A quotation set off from the main text
62+[ ] book - A book
63+[ ] bookinfo - Meta-information for a Book
64+[ ] bridgehead - A free-floating heading
65+[ ] callout - A “called out” description of a marked Area
66+[ ] calloutlist - A list of Callouts
67+[ ] caption - A caption
68+[ ] caution - A note of caution
69+[ ] chapter - A chapter, as of a book
70+[ ] chapterinfo - Meta-information for a Chapter
71+[ ] citation - An inline bibliographic reference to another published work
72+[ ] citebiblioid - A citation of a bibliographic identifier
73+[ ] citerefentry - A citation to a reference page
74+[ ] citetitle - The title of a cited work
75+[ ] city - The name of a city in an address
76+[ ] classname - The name of a class, in the object-oriented programming sense
77+[ ] classsynopsis - The syntax summary for a class definition
78+[ ] classsynopsisinfo - Information supplementing the contents of
79+ a ClassSynopsis
80+[ ] cmdsynopsis - A syntax summary for a software command
81+[ ] co - The location of a callout embedded in text
82+[ ] code - An inline code fragment
83+[ ] col - Specifications for a column in an HTML table
84+[ ] colgroup - A group of columns in an HTML table
85+[ ] collab - Identifies a collaborator
86+[ ] collabname - The name of a collaborator
87+[ ] colophon - Text at the back of a book describing facts about its production
88+[ ] colspec - Specifications for a column in a table
89+[ ] command - The name of an executable program or other software command
90+[ ] computeroutput - Data, generally text, displayed or presented by a computer
91+[ ] confdates - The dates of a conference for which a document was written
92+[ ] confgroup - A wrapper for document meta-information about a conference
93+[ ] confnum - An identifier, frequently numerical, associated with a conference for which a document was written
94+[ ] confsponsor - The sponsor of a conference for which a document was written
95+[ ] conftitle - The title of a conference for which a document was written
96+[x] constant - A programming or system constant
97+[ ] constraint - A constraint in an EBNF production
98+[ ] constraintdef - The definition of a constraint in an EBNF production
99+[ ] constructorsynopsis - A syntax summary for a constructor
100+[ ] contractnum - The contract number of a document
101+[ ] contractsponsor - The sponsor of a contract
102+[ ] contrib - A summary of the contributions made to a document by a
103+ credited source
104+[ ] copyright - Copyright information about a document
105+[ ] coref - A cross reference to a co
106+[ ] corpauthor - A corporate author, as opposed to an individual
107+[ ] corpcredit - A corporation or organization credited in a document
108+[ ] corpname - The name of a corporation
109+[ ] country - The name of a country
110+[ ] database - The name of a database, or part of a database
111+[x] date - The date of publication or revision of a document
112+[ ] dedication - A wrapper for the dedication section of a book
113+[ ] destructorsynopsis - A syntax summary for a destructor
114+[ ] edition - The name or number of an edition of a document
115+[ ] editor - The name of the editor of a document
116+[ ] email - An email address
117+[x] emphasis - Emphasized text
118+[ ] entry - A cell in a table
119+[ ] entrytbl - A subtable appearing in place of an Entry in a table
120+[ ] envar - A software environment variable
121+[ ] epigraph - A short inscription at the beginning of a document or component
122+[ ] equation - A displayed mathematical equation
123+[ ] errorcode - An error code
124+[ ] errorname - An error name
125+[ ] errortext - An error message.
126+[ ] errortype - The classification of an error message
127+[ ] example - A formal example, with a title
128+[ ] exceptionname - The name of an exception
129+[ ] fax - A fax number
130+[ ] fieldsynopsis - The name of a field in a class definition
131+[ ] figure - A formal figure, generally an illustration, with a title
132+[ ] filename - The name of a file
133+[ ] firstname - The first name of a person
134+[ ] firstterm - The first occurrence of a term
135+[ ] footnote - A footnote
136+[ ] footnoteref - A cross reference to a footnote (a footnote mark)
137+[ ] foreignphrase - A word or phrase in a language other than the primary
138+ language of the document
139+[ ] formalpara - A paragraph with a title
140+[ ] funcdef - A function (subroutine) name and its return type
141+[ ] funcparams - Parameters for a function referenced through a function
142+ pointer in a synopsis
143+[ ] funcprototype - The prototype of a function
144+[ ] funcsynopsis - The syntax summary for a function definition
145+[ ] funcsynopsisinfo - Information supplementing the FuncDefs of a FuncSynopsis
146+[x] function - The name of a function or subroutine, as in a
147+ programming language
148+[ ] glossary - A glossary
149+[ ] glossaryinfo - Meta-information for a Glossary
150+[ ] glossdef - A definition in a GlossEntry
151+[ ] glossdiv - A division in a Glossary
152+[ ] glossentry - An entry in a Glossary or GlossList
153+[ ] glosslist - A wrapper for a set of GlossEntrys
154+[ ] glosssee - A cross-reference from one GlossEntry to another
155+[ ] glossseealso - A cross-reference from one GlossEntry to another
156+[ ] glossterm - A glossary term
157+[ ] graphic - A displayed graphical object (not an inline)
158+[ ] graphicco - A graphic that contains callout areas
159+[ ] group - A group of elements in a CmdSynopsis
160+[ ] guibutton - The text on a button in a GUI
161+[ ] guiicon - Graphic and/or text appearing as a icon in a GUI
162+[ ] guilabel - The text of a label in a GUI
163+[ ] guimenu - The name of a menu in a GUI
164+[ ] guimenuitem - The name of a terminal menu item in a GUI
165+[ ] guisubmenu - The name of a submenu in a GUI
166+[ ] hardware - A physical part of a computer system
167+[ ] highlights - A summary of the main points of the discussed component
168+[ ] holder - The name of the individual or organization that holds a copyright
169+[ ] honorific - The title of a person
170+[ ] html:form - An HTML form
171+[ ] imagedata - Pointer to external image data
172+[ ] imageobject - A wrapper for image data and its associated meta-information
173+[ ] imageobjectco - A wrapper for an image object with callouts
174+[ ] important - An admonition set off from the text
175+[ ] index - An index
176+[ ] indexdiv - A division in an index
177+[ ] indexentry - An entry in an index
178+[ ] indexinfo - Meta-information for an Index
179+[ ] indexterm - A wrapper for terms to be indexed
180+[ ] informalequation - A displayed mathematical equation without a title
181+[ ] informalexample - A displayed example without a title
182+[ ] informalfigure - A untitled figure
183+[ ] informaltable - A table without a title
184+[ ] initializer - The initializer for a FieldSynopsis
185+[ ] inlineequation - A mathematical equation or expression occurring inline
186+[ ] inlinegraphic - An object containing or pointing to graphical data
187+ that will be rendered inline
188+[ ] inlinemediaobject - An inline media object (video, audio, image, and so on)
189+[ ] interface - An element of a GUI
190+[ ] interfacename - The name of an interface
191+[ ] invpartnumber - An inventory part number
192+[ ] isbn - The International Standard Book Number of a document
193+[ ] issn - The International Standard Serial Number of a periodical
194+[ ] issuenum - The number of an issue of a journal
195+[x] itemizedlist - A list in which each entry is marked with a bullet or
196+ other dingbat
197+[ ] itermset - A set of index terms in the meta-information of a document
198+[ ] jobtitle - The title of an individual in an organization
199+[ ] keycap - The text printed on a key on a keyboard
200+[ ] keycode - The internal, frequently numeric, identifier for a key
201+ on a keyboard
202+[ ] keycombo - A combination of input actions
203+[ ] keysym - The symbolic name of a key on a keyboard
204+[ ] keyword - One of a set of keywords describing the content of a document
205+[ ] keywordset - A set of keywords describing the content of a document
206+[ ] label - A label on a Question or Answer
207+[ ] legalnotice - A statement of legal obligations or requirements
208+[ ] lhs - The left-hand side of an EBNF production
209+[ ] lineage - The portion of a person's name indicating a relationship to
210+ ancestors
211+[ ] lineannotation - A comment on a line in a verbatim listing
212+[ ] link - A hypertext link
213+[ ] listitem - A wrapper for the elements of a list item
214+[x] literal - Inline text that is some literal value
215+[ ] literallayout - A block of text in which line breaks and white space are
216+ to be reproduced faithfully
217+[ ] lot - A list of the titles of formal objects (as tables or figures) in
218+ a document
219+[ ] lotentry - An entry in a list of titles
220+[ ] manvolnum - A reference volume number
221+[ ] markup - A string of formatting markup in text that is to be
222+ represented literally
223+[ ] mathphrase - A mathematical phrase, an expression that can be represented
224+ with ordinary text and a small amount of markup
225+[ ] medialabel - A name that identifies the physical medium on which some
226+ information resides
227+[ ] mediaobject - A displayed media object (video, audio, image, etc.)
228+[ ] mediaobjectco - A media object that contains callouts
229+[ ] member - An element of a simple list
230+[ ] menuchoice - A selection or series of selections from a menu
231+[ ] methodname - The name of a method
232+[ ] methodparam - Parameters to a method
233+[ ] methodsynopsis - A syntax summary for a method
234+[ ] mml:math - A MathML equation
235+[ ] modespec - Application-specific information necessary for the
236+ completion of an OLink
237+[ ] modifier - Modifiers in a synopsis
238+[ ] mousebutton - The conventional name of a mouse button
239+[ ] msg - A message in a message set
240+[ ] msgaud - The audience to which a message in a message set is relevant
241+[ ] msgentry - A wrapper for an entry in a message set
242+[ ] msgexplan - Explanatory material relating to a message in a message set
243+[ ] msginfo - Information about a message in a message set
244+[ ] msglevel - The level of importance or severity of a message in a message set
245+[ ] msgmain - The primary component of a message in a message set
246+[ ] msgorig - The origin of a message in a message set
247+[ ] msgrel - A related component of a message in a message set
248+[ ] msgset - A detailed set of messages, usually error messages
249+[ ] msgsub - A subcomponent of a message in a message set
250+[ ] msgtext - The actual text of a message component in a message set
251+[ ] nonterminal - A non-terminal in an EBNF production
252+[ ] note - A message set off from the text
253+[ ] objectinfo - Meta-information for an object
254+[ ] olink - A link that addresses its target indirectly, through an entity
255+[ ] ooclass - A class in an object-oriented programming language
256+[ ] ooexception - An exception in an object-oriented programming language
257+[ ] oointerface - An interface in an object-oriented programming language
258+[ ] option - An option for a software command
259+[ ] optional - Optional information
260+[x] orderedlist - A list in which each entry is marked with a sequentially
261+ incremented label
262+[ ] orgdiv - A division of an organization
263+[ ] orgname - The name of an organization other than a corporation
264+[ ] otheraddr - Uncategorized information in address
265+[ ] othercredit - A person or entity, other than an author or editor,
266+ credited in a document
267+[ ] othername - A component of a persons name that is not a first name,
268+ surname, or lineage
269+[ ] package - A package
270+[ ] pagenums - The numbers of the pages in a book, for use in a bibliographic
271+ entry
272+[x] para - A paragraph
273+[ ] paramdef - Information about a function parameter in a programming language
274+[ ] parameter - A value or a symbolic reference to a value
275+[ ] part - A division in a book
276+[ ] partinfo - Meta-information for a Part
277+[ ] partintro - An introduction to the contents of a part
278+[ ] personblurb - A short description or note about a person
279+[ ] personname - The personal name of an individual
280+[ ] phone - A telephone number
281+[ ] phrase - A span of text
282+[ ] pob - A post office box in an address
283+[ ] postcode - A postal code in an address
284+[ ] preface - Introductory matter preceding the first chapter of a book
285+[ ] prefaceinfo - Meta-information for a Preface
286+[ ] primary - The primary word or phrase under which an index term should be
287+ sorted
288+[ ] primaryie - A primary term in an index entry, not in the text
289+[ ] printhistory - The printing history of a document
290+[ ] procedure - A list of operations to be performed in a well-defined sequence
291+[ ] production - A production in a set of EBNF productions
292+[ ] productionrecap - A cross-reference to an EBNF production
293+[ ] productionset - A set of EBNF productions
294+[ ] productname - The formal name of a product
295+[ ] productnumber - A number assigned to a product
296+[ ] programlisting - A literal listing of all or part of a program
297+[ ] programlistingco - A program listing with associated areas used in callouts
298+[ ] prompt - A character or string indicating the start of an input field in
299+ a computer display
300+[ ] property - A unit of data associated with some part of a computer system
301+[ ] pubdate - The date of publication of a document
302+[ ] publisher - The publisher of a document
303+[ ] publishername - The name of the publisher of a document
304+[ ] pubsnumber - A number assigned to a publication other than an ISBN or ISSN
305+ or inventory part number
306+[ ] qandadiv - A titled division in a QandASet
307+[ ] qandaentry - A question/answer set within a QandASet
308+[ ] qandaset - A question-and-answer set
309+[ ] question - A question in a QandASet
310+[ ] quote - An inline quotation
311+[ ] refclass - The scope or other indication of applicability of a
312+ reference entry
313+[ ] refdescriptor - A description of the topic of a reference page
314+[ ] refentry - A reference page (originally a UNIX man-style reference page)
315+[ ] refentryinfo - Meta-information for a Refentry
316+[ ] refentrytitle - The title of a reference page
317+[ ] reference - A collection of reference entries
318+[ ] referenceinfo - Meta-information for a Reference
319+[ ] refmeta - Meta-information for a reference entry
320+[ ] refmiscinfo - Meta-information for a reference entry other than the title
321+ and volume number
322+[ ] refname - The name of (one of) the subject(s) of a reference page
323+[ ] refnamediv - The name, purpose, and classification of a reference page
324+[ ] refpurpose - A short (one sentence) synopsis of the topic of a reference
325+ page
326+[ ] refsect1 - A major subsection of a reference entry
327+[ ] refsect1info - Meta-information for a RefSect1
328+[ ] refsect2 - A subsection of a RefSect1
329+[ ] refsect2info - Meta-information for a RefSect2
330+[ ] refsect3 - A subsection of a RefSect2
331+[ ] refsect3info - Meta-information for a RefSect3
332+[ ] refsection - A recursive section in a refentry
333+[ ] refsectioninfo - Meta-information for a refsection
334+[ ] refsynopsisdiv - A syntactic synopsis of the subject of the reference page
335+[ ] refsynopsisdivinfo - Meta-information for a RefSynopsisDiv
336+[ ] releaseinfo - Information about a particular release of a document
337+[ ] remark - A remark (or comment) intended for presentation in a draft
338+ manuscript
339+[ ] replaceable - Content that may or must be replaced by the user
340+[ ] returnvalue - The value returned by a function
341+[ ] revdescription - A extended description of a revision to a document
342+[ ] revhistory - A history of the revisions to a document
343+[ ] revision - An entry describing a single revision in the history of the
344+ revisions to a document
345+[ ] revnumber - A document revision number
346+[ ] revremark - A description of a revision to a document
347+[ ] rhs - The right-hand side of an EBNF production
348+[ ] row - A row in a table
349+[ ] sbr - An explicit line break in a command synopsis
350+[ ] screen - Text that a user sees or might see on a computer screen
351+[ ] screenco - A screen with associated areas used in callouts
352+[ ] screeninfo - Information about how a screen shot was produced
353+[ ] screenshot - A representation of what the user sees or might see on a
354+ computer screen
355+[ ] secondary - A secondary word or phrase in an index term
356+[ ] secondaryie - A secondary term in an index entry, rather than in the text
357+[x] sect1 - A top-level section of document
358+[ ] sect1info - Meta-information for a Sect1
359+[x] sect2 - A subsection within a Sect1
360+[ ] sect2info - Meta-information for a Sect2
361+[x] sect3 - A subsection within a Sect2
362+[ ] sect3info - Meta-information for a Sect3
363+[x] sect4 - A subsection within a Sect3
364+[ ] sect4info - Meta-information for a Sect4
365+[x] sect5 - A subsection within a Sect4
366+[ ] sect5info - Meta-information for a Sect5
367+[x] section - A recursive section
368+[ ] sectioninfo - Meta-information for a recursive section
369+[ ] see - Part of an index term directing the reader instead to another entry
370+ in the index
371+[ ] seealso - Part of an index term directing the reader also to another entry
372+ in the index
373+[ ] seealsoie - A See also entry in an index, rather than in the text
374+[ ] seeie - A See entry in an index, rather than in the text
375+[ ] seg - An element of a list item in a segmented list
376+[ ] seglistitem - A list item in a segmented list
377+[ ] segmentedlist - A segmented list, a list of sets of elements
378+[ ] segtitle - The title of an element of a list item in a segmented list
379+[ ] seriesvolnums - Numbers of the volumes in a series of books
380+[ ] set - A collection of books
381+[ ] setindex - An index to a set of books
382+[ ] setindexinfo - Meta-information for a SetIndex
383+[ ] setinfo - Meta-information for a Set
384+[ ] sgmltag - A component of SGML markup
385+[ ] shortaffil - A brief description of an affiliation
386+[ ] shortcut - A key combination for an action that is also accessible through
387+ a menu
388+[ ] sidebar - A portion of a document that is isolated from the main
389+ narrative flow
390+[ ] sidebarinfo - Meta-information for a Sidebar
391+[ ] simpara - A paragraph that contains only text and inline markup, no block
392+ elements
393+[ ] simplelist - An undecorated list of single words or short phrases
394+[ ] simplemsgentry - A wrapper for a simpler entry in a message set
395+[ ] simplesect - A section of a document with no subdivisions
396+[ ] spanspec - Formatting information for a spanned column in a table
397+[ ] state - A state or province in an address
398+[ ] step - A unit of action in a procedure
399+[ ] stepalternatives - Alternative steps in a procedure
400+[ ] street - A street address in an address
401+[ ] structfield - A field in a structure (in the programming language sense)
402+[ ] structname - The name of a structure (in the programming language sense)
403+[ ] subject - One of a group of terms describing the subject matter of a
404+ document
405+[ ] subjectset - A set of terms describing the subject matter of a document
406+[ ] subjectterm - A term in a group of terms describing the subject matter of
407+ a document
408+[ ] subscript - A subscript (as in H2O, the molecular formula for water)
409+[ ] substeps - A wrapper for steps that occur within steps in a procedure
410+[ ] subtitle - The subtitle of a document
411+[ ] superscript - A superscript (as in x2, the mathematical notation for x
412+ multiplied by itself)
413+[ ] surname - A family name; in western cultures the last name
414+[ ] svg:svg - An SVG graphic
415+[x] symbol - A name that is replaced by a value before processing
416+[ ] synopfragment - A portion of a CmdSynopsis broken out from the main body
417+ of the synopsis
418+[ ] synopfragmentref - A reference to a fragment of a command synopsis
419+[ ] synopsis - A general-purpose element for representing the syntax of
420+ commands or functions
421+[ ] systemitem - A system-related item or term
422+[ ] table - A formal table in a document
423+[ ] task - A task to be completed
424+[ ] taskprerequisites - The prerequisites for a task
425+[ ] taskrelated - Information related to a task
426+[ ] tasksummary - A summary of a task
427+[ ] tbody - A wrapper for the rows of a table or informal table
428+[ ] td - A table entry in an HTML table
429+[ ] term - The word or phrase being defined or described in a variable list
430+[ ] termdef - An inline term definition
431+[ ] tertiary - A tertiary word or phrase in an index term
432+[ ] tertiaryie - A tertiary term in an index entry, rather than in the text
433+[ ] textdata - Pointer to external text data
434+[ ] textobject - A wrapper for a text description of an object and its
435+ associated meta-information
436+[ ] tfoot - A table footer consisting of one or more rows
437+[ ] tgroup - A wrapper for the main content of a table, or part of a table
438+[ ] th - A table header entry in an HTML table
439+[ ] thead - A table header consisting of one or more rows
440+[ ] tip - A suggestion to the user, set off from the text
441+[x] title - The text of the title of a section of a document or of a formal
442+ block-level element
443+[ ] titleabbrev - The abbreviation of a Title
444+[ ] toc - A table of contents
445+[ ] tocback - An entry in a table of contents for a back matter component
446+[ ] tocchap - An entry in a table of contents for a component in the body of
447+ a document
448+[ ] tocentry - A component title in a table of contents
449+[ ] tocfront - An entry in a table of contents for a front matter component
450+[ ] toclevel1 - A top-level entry within a table of contents entry for a
451+ chapter-like component
452+[ ] toclevel2 - A second-level entry within a table of contents entry for a
453+ chapter-like component
454+[ ] toclevel3 - A third-level entry within a table of contents entry for a
455+ chapter-like component
456+[ ] toclevel4 - A fourth-level entry within a table of contents entry for a
457+ chapter-like component
458+[ ] toclevel5 - A fifth-level entry within a table of contents entry for a
459+ chapter-like component
460+[ ] tocpart - An entry in a table of contents for a part of a book
461+[ ] token - A unit of information
462+[ ] tr - A row in an HTML table
463+[ ] trademark - A trademark
464+[ ] type - The classification of a value
465+[x] ulink - A link that addresses its target by means of a URL
466+ (Uniform Resource Locator)
467+[ ] uri - A Uniform Resource Identifier
468+[ ] userinput - Data entered by the user
469+[x] varargs - An empty element in a function synopsis indicating a variable
470+ number of arguments
471+[ ] variablelist - A list in which each entry is composed of a set of one or
472+ more terms and an associated description
473+[ ] varlistentry - A wrapper for a set of terms and the associated description
474+ in a variable list
475+[x] varname - The name of a variable
476+[ ] videodata - Pointer to external video data
477+[ ] videoobject - A wrapper for video data and its associated meta-information
478+[ ] void - An empty element in a function synopsis indicating that the
479+ function in question takes no arguments
480+[ ] volumenum - The volume number of a document in a set (as of books in a set
481+ or articles in a journal)
482+[ ] warning - An admonition set off from the text
483+[ ] wordasword - A word meant specifically as a word and not representing
484+ anything else
485+[ ] xref - A cross reference to another part of the document
486+[ ] year - The year of publication of a document
487+
488+-}
489+
12490type DB = State DBState
13491
14492data DBState = DBState{ dbSectionLevel :: Int
@@ -45,7 +523,6 @@ parseBlock (Elem e) =
45523 "sect3" -> sect 3
46524 "sect4" -> sect 4
47525 "sect5" -> sect 5
48− "sect6" -> sect 6
49526 "section" -> gets dbSectionLevel >>= sect . (+1)
50527 "abstract" -> blockQuote <$> getBlocks e
51528 "itemizedlist" -> bulletList <$> listitems