diff options
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.xsl | 12 |
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()"/> |