pandoc
pandoc copied to clipboard
DocBook input: `simplelist` not recognized at block level
Explain the problem.
<simplelist> can occur both in an inline context or on a block context (assuming chapter is a good example of a container of blocks and para is one of inline elements). See https://tdg.docbook.org/tdg/5.1/simplelist.html
When it occurs in a chapter, it is not recognized, pandoc logs
[INFO] Ignored element simplelist
[INFO] Ignored element member
[INFO] Ignored element link
where member and link are descendants of simplelist.
It renders the combined inner text as plain text.
Fixing simplelist specifically seems quite simple; adding a line to parseBlock.
I do not know if similar problems also exist.
Workaround
<xsl:template match="db:simplelist">
<para>
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</para>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
Pandoc version?
2.17.1.1
Please give the exact input you used, the pandoc command, the output you received, and the output you expected.