Bug#867664: pandoc: Include doctype header in generated docbook output?
Petter Reinholdtsen
pere at hungry.com
Sat Jul 8 10:31:26 UTC 2017
Package: pandoc
Version: 1.12.4.2~dfsg-1
The DocBook output generated by pandoc is missing the XML header
documenting the format. Is there a reason for this?
Instead of getting this result,
% printf "header\n===\n\nbody\n"|pandoc -o - -t docbook -
<sect1 id="header">
<title>header</title>
<para>
body
</para>
</sect1>
%
I suggest to return something like this:
% printf "header\n===\n\nbody\n"|pandoc -o - -t docbook -
<?xml version="1.0" encoding='UTF-8' ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<sect1 id="header">
<title>header</title>
<para>
body
</para>
</sect1>
%
This allow XML validators to check the content.
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-haskell-maintainers
mailing list