From 0707ada63bf5662c34b8f8fab60291840377217c Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Fri, 14 Sep 2018 12:48:10 +0200 Subject: XSLT stylesheet to convert cmark XML back to Commonmark Initial version of an XSLT stylesheet that converts the XML format produced by `cmark -t xml` back to Commonmark. Fixes #264 --- tools/xml2md.xsl | 308 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 308 insertions(+) create mode 100644 tools/xml2md.xsl (limited to 'tools') diff --git a/tools/xml2md.xsl b/tools/xml2md.xsl new file mode 100644 index 0000000..2fc7ce1 --- /dev/null +++ b/tools/xml2md.xsl @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + + + Unsupported element '' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + *** + + + + + + + + + + + + + - + + + + . + ) + + + + + + + + + + + + + + + + + + + + + + + > + + + + + > + + + + + + + + ``` + + + + + + + ``` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \. + + + + + + + \) + + + + + + + \ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + * + + * + + + + ** + + ** + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ! + [ + + ]( + + + + + + " + + + + + " + + ) + + + + + + + + + + + + + + + + + + + + + \ + + + + + + + + + + + + + -- cgit v1.2.3