aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-11 00:47:56 +0200
committerAdrian Kummerlaender2014-09-11 00:47:56 +0200
commit1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31 (patch)
treedae83ea73daa5585f5793e5be2d57a97c3bd6700 /utility
parent41fa90d4a3a61a83d587098c7efbc4f52f4ea2fe (diff)
downloadblog.kummerlaender.eu-1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31.tar
blog.kummerlaender.eu-1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31.tar.gz
blog.kummerlaender.eu-1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31.tar.bz2
blog.kummerlaender.eu-1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31.tar.lz
blog.kummerlaender.eu-1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31.tar.xz
blog.kummerlaender.eu-1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31.tar.zst
blog.kummerlaender.eu-1b4253c36a59ddb9a1530c2ce9898ff18f5a3d31.zip
Expanded formatter embellishment templates
* XHTML elements "h2" and "h3" are replaced with "h3" and "h4" respectively ** modified all existing contents accordingly ** this was done to avoid the gap between the primary heading and subheadings in the markdown depiction of the contents * fleshed out the InputXSLT project page with further information
Diffstat (limited to 'utility')
-rw-r--r--utility/formatter.xsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/utility/formatter.xsl b/utility/formatter.xsl
index 2c7f3b9..eae9395 100644
--- a/utility/formatter.xsl
+++ b/utility/formatter.xsl
@@ -42,6 +42,18 @@
</xsl:copy>
</xsl:template>
+<xsl:template match="h2" mode="embellish">
+ <h3>
+ <xsl:copy-of select="node()"/>
+ </h3>
+</xsl:template>
+
+<xsl:template match="h3" mode="embellish">
+ <h4>
+ <xsl:copy-of select="node()"/>
+ </h4>
+</xsl:template>
+
<xsl:template match="pre" mode="embellish">
<xsl:call-template name="highlighter">
<xsl:with-param name="source" select="code/text()"/>