diff options
author | Mathieu Boespflug <m@tweag.io> | 2020-06-14 19:40:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 10:40:00 -0700 |
commit | 12a35dd0d0f7363ad5b85ab859925113c65aa61f (patch) | |
tree | 034d4849c9fbab679a44a214344e9397244bcfb0 /test | |
parent | 7716caaf2a967fa79acf835bf0d29a1abc966ab1 (diff) | |
download | pandoc-12a35dd0d0f7363ad5b85ab859925113c65aa61f.tar.gz |
Docbook: map <simplesect> to unnumbered section (#6436)
A <simplesect> is a section like any other, except that it never
contains an subsection, and is typically rendered unnumbered.
Diffstat (limited to 'test')
-rw-r--r-- | test/docbook-reader.docbook | 6 | ||||
-rw-r--r-- | test/docbook-reader.native | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/docbook-reader.docbook b/test/docbook-reader.docbook index 3a4fc77c6..eaa0d5273 100644 --- a/test/docbook-reader.docbook +++ b/test/docbook-reader.docbook @@ -47,6 +47,12 @@ <para> with no blank line </para> + <simplesect> + <title>Level 4</title> + <para> + An unnumbered section. + </para> + </simplesect> </sect3> </sect2> <sect2 id="level-2"> diff --git a/test/docbook-reader.native b/test/docbook-reader.native index c86a055bd..36245e875 100644 --- a/test/docbook-reader.native +++ b/test/docbook-reader.native @@ -10,6 +10,8 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Sof ,Header 2 ("level-2-with-emphasis",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]] ,Header 3 ("level-3",[],[]) [Str "Level",Space,Str "3"] ,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"] +,Header 4 ("",["unnumbered"],[]) [Str "Level",Space,Str "4"] +,Para [Str "An",Space,Str "unnumbered",Space,Str "section."] ,Header 2 ("level-2",[],[]) [Str "Level",Space,Str "2"] ,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"] ,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"] |