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

conversion from docbook: missing releaseinfo information #6542

Closed
vinc17fr opened this issue Jul 17, 2020 · 1 comment
Closed

conversion from docbook: missing releaseinfo information #6542

vinc17fr opened this issue Jul 17, 2020 · 1 comment

Comments

@vinc17fr
Copy link

With pandoc 2.9.1.1 (and previous versions) under Debian/unstable, when converting from docbook, the releaseinfo information is missing in the output.

Example manual.xml docbook file:

<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book>

<bookinfo>
<title>Title</title>
<author>
<firstname>Firstname</firstname><surname>Lastname</surname>
</author>
<releaseinfo>1.17</releaseinfo>
</bookinfo>

<para>Text.</para>

</book>

But with

pandoc -s -f docbook manual.xml -t html
pandoc -s -f docbook manual.xml -t texinfo

there is no mention of 1.17 in the output.

@jgm
Copy link
Owner

jgm commented Jul 18, 2020

OK, I've added parsing of releaseinfo as metadata, which you can confirm using

pandoc -s -f docbook -t native

However, it won't appear in html or texinfo output unless you use a custom template that includes the releaseinfo variable somewhere.

jgm added a commit that referenced this issue Jul 18, 2020
Closes #6542.

Note that you'll need to put releaseinfo somewhere in your
template if you want this to be part of the converted output.
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