summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-23 15:46:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-23 18:24:18 -0400
commit561d3c68a00af7359f891de4a0b5e2b3e27e6b08 (patch)
tree05ddc495a0da76cfbdcc4a1c134e8abc9ee3e6ec
parent03601cb794b54be6124649f97f9568e6979c3287 (diff)
downloadgtk+-561d3c68a00af7359f891de4a0b5e2b3e27e6b08.tar.gz
docs: Pass --standalone to pandoc
This flag causes pandoc to emit a proper doctype declaration and, crucially, namespace declarations for the xlink namespace that it insists on using for href attributes. Without this, putting external links in md documents doesn't survive the journey through xml.
-rwxr-xr-xdocs/reference/gtk/gtk-markdown-to-docbook1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/reference/gtk/gtk-markdown-to-docbook b/docs/reference/gtk/gtk-markdown-to-docbook
index f48b556f48..4268bf1b7a 100755
--- a/docs/reference/gtk/gtk-markdown-to-docbook
+++ b/docs/reference/gtk/gtk-markdown-to-docbook
@@ -177,6 +177,7 @@ def ConvertToDocbook(infile, outfile):
subprocess.check_call(["pandoc", infile, "-o", outfile,
"--from=" + input_format,
"--to=" + output_format,
+ "--standalone",
"--top-level-division=" + division])
def ExpandGtkDocAbbreviations(infile, outfile):