mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Docbook reader: treat envar and systemitem like code (#6435)
This commit is contained in:
@@ -139,7 +139,7 @@ List of all DocBook tags, with [x] indicating implemented,
|
||||
[x] emphasis - Emphasized text
|
||||
[x] entry - A cell in a table
|
||||
[ ] entrytbl - A subtable appearing in place of an Entry in a table
|
||||
[ ] envar - A software environment variable
|
||||
[x] envar - A software environment variable
|
||||
[x] epigraph - A short inscription at the beginning of a document or component
|
||||
note: also handle embedded attribution tag
|
||||
[x] equation - A displayed mathematical equation
|
||||
@@ -445,7 +445,7 @@ List of all DocBook tags, with [x] indicating implemented,
|
||||
[ ] synopfragmentref - A reference to a fragment of a command synopsis
|
||||
[ ] synopsis - A general-purpose element for representing the syntax of
|
||||
commands or functions
|
||||
[ ] systemitem - A system-related item or term
|
||||
[x] systemitem - A system-related item or term
|
||||
[ ] table - A formal table in a document
|
||||
[ ] task - A task to be completed
|
||||
[ ] taskprerequisites - The prerequisites for a task
|
||||
@@ -976,6 +976,7 @@ parseInline (Elem e) =
|
||||
"classname" -> codeWithLang
|
||||
"code" -> codeWithLang
|
||||
"filename" -> codeWithLang
|
||||
"envar" -> codeWithLang
|
||||
"literal" -> codeWithLang
|
||||
"computeroutput" -> codeWithLang
|
||||
"prompt" -> codeWithLang
|
||||
@@ -994,6 +995,7 @@ parseInline (Elem e) =
|
||||
"symbol" -> codeWithLang
|
||||
"constant" -> codeWithLang
|
||||
"userinput" -> codeWithLang
|
||||
"systemitem" -> codeWithLang
|
||||
"varargs" -> return $ code "(...)"
|
||||
"keycap" -> return (str $ T.pack $ strContent e)
|
||||
"keycombo" -> keycombo <$>
|
||||
|
||||
Reference in New Issue
Block a user