Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocBook input: simplelist not recognized at block level #8086

Open
roberth opened this issue May 25, 2022 · 1 comment
Open

DocBook input: simplelist not recognized at block level #8086

roberth opened this issue May 25, 2022 · 1 comment

Comments

@roberth
Copy link

roberth commented May 25, 2022

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

@jgm
Copy link
Owner

jgm commented Jun 1, 2022

Please give the exact input you used, the pandoc command, the output you received, and the output you expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants