From 561d3c68a00af7359f891de4a0b5e2b3e27e6b08 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 23 Jul 2020 15:46:06 -0400 Subject: [PATCH] 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. --- docs/reference/gtk/gtk-markdown-to-docbook | 1 + 1 file changed, 1 insertion(+) 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):