git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #1797 from bos/master
2b1ddc2John MacFarlane
src/Text/Pandoc/Readers/DocBook.hs+3−2
@@ -81,7 +81,7 @@ List of all DocBook tags, with [x] indicating implemented,
81[ ] citerefentry - A citation to a reference page
81[ ] citerefentry - A citation to a reference page
82[ ] citetitle - The title of a cited work
82[ ] citetitle - The title of a cited work
83[ ] city - The name of a city in an address
83[ ] city - The name of a city in an address
84−[ ] classname - The name of a class, in the object-oriented programming sense
84+[x] classname - The name of a class, in the object-oriented programming sense
85[ ] classsynopsis - The syntax summary for a class definition
85[ ] classsynopsis - The syntax summary for a class definition
86[ ] classsynopsisinfo - Information supplementing the contents of
86[ ] classsynopsisinfo - Information supplementing the contents of
87 a ClassSynopsis
87 a ClassSynopsis
@@ -471,7 +471,7 @@ List of all DocBook tags, with [x] indicating implemented,
471[ ] token - A unit of information
471[ ] token - A unit of information
472[x] tr - A row in an HTML table
472[x] tr - A row in an HTML table
473[ ] trademark - A trademark
473[ ] trademark - A trademark
474−[ ] type - The classification of a value
474+[x] type - The classification of a value
475[x] ulink - A link that addresses its target by means of a URL
475[x] ulink - A link that addresses its target by means of a URL
476 (Uniform Resource Locator)
476 (Uniform Resource Locator)
477[x] uri - A Uniform Resource Identifier
477[x] uri - A Uniform Resource Identifier
@@ -903,6 +903,7 @@ parseInline (Elem e) =
903 else doubleQuoted contents
903 else doubleQuoted contents
904 "simplelist" -> simpleList
904 "simplelist" -> simpleList
905 "segmentedlist" -> segmentedList
905 "segmentedlist" -> segmentedList
906+ "classname" -> codeWithLang
906 "code" -> codeWithLang
907 "code" -> codeWithLang
907 "filename" -> codeWithLang
908 "filename" -> codeWithLang
908 "literal" -> codeWithLang
909 "literal" -> codeWithLang
tests/docbook-reader.docbook+3
@@ -709,6 +709,9 @@ These should not be escaped: \$ \\ \> \[ \{
709 <literal>\</literal>, <literal>\$</literal>,
709 <literal>\</literal>, <literal>\$</literal>,
710 <literal>&lt;html&gt;</literal>.
710 <literal>&lt;html&gt;</literal>.
711 </para>
711 </para>
712+ <para>
713+ More code: <classname>Class</classname> and <type>Type</type>
714+ </para>
712 <para>
715 <para>
713 <emphasis role="strikethrough">This is
716 <emphasis role="strikethrough">This is
714 <emphasis>strikeout</emphasis>.</emphasis>
717 <emphasis>strikeout</emphasis>.</emphasis>
tests/docbook-reader.native+1
@@ -185,6 +185,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa
185,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
185,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
186,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
186,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
187,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "<html>",Str "."]
187,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "<html>",Str "."]
188+,Para [Str "More",Space,Str "code:",Space,Code ("",[],[]) "Class",Space,Str "and",Space,Code ("",[],[]) "Type"]
188,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]]
189,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]]
189,Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",Space,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello\160there"],Str "."]
190,Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",Space,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello\160there"],Str "."]
190,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many\160of\160them"],Str "O."]
191,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",Space,Str "H",Subscript [Str "many\160of\160them"],Str "O."]