From 60be999bc36360cabe37a648e6a6b974485b884d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 4 Sep 2014 19:30:24 +0200 Subject: Extracted formatter functionality into formatter helper stylesheet * functionality for formatting markdown using kramdown and embellishing the result with e.g. syntax highlighting is required for all content types --- source/01_data/articles.xsl | 34 ++------------------- source/01_data/pages.xsl | 3 +- utility/formatter.xsl | 74 +++++++++++++++++++++++++++++++++++++++++++++ utility/helper.xsl | 20 ------------ 4 files changed, 77 insertions(+), 54 deletions(-) create mode 100644 utility/formatter.xsl delete mode 100644 utility/helper.xsl diff --git a/source/01_data/articles.xsl b/source/01_data/articles.xsl index 8e65f40..3b3ac14 100644 --- a/source/01_data/articles.xsl +++ b/source/01_data/articles.xsl @@ -7,7 +7,7 @@ exclude-result-prefixes="xalan InputXSLT" > - + @@ -15,35 +15,6 @@ - - - - - - - - - - - highlight --out-format=xhtml --inline-css --style=molokai --fragment --enclose-pre --wrap-simple --syntax= - - - - - - txt - - - - - - - -
-		
-	
-
- @@ -61,7 +32,6 @@ - kramdown @@ -84,7 +54,7 @@ - + diff --git a/source/01_data/pages.xsl b/source/01_data/pages.xsl index cdfa6d4..fe0e54d 100644 --- a/source/01_data/pages.xsl +++ b/source/01_data/pages.xsl @@ -7,7 +7,7 @@ exclude-result-prefixes="xalan InputXSLT" > - + @@ -18,7 +18,6 @@ - kramdown diff --git a/utility/formatter.xsl b/utility/formatter.xsl new file mode 100644 index 0000000..2c7f3b9 --- /dev/null +++ b/utility/formatter.xsl @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + highlight --out-format=xhtml --inline-css --style=molokai --fragment --enclose-pre --wrap-simple --syntax= + + + + + + +
+		
+	
+
+ + + + + + + + + + + + + + + + + txt + + + + + + + + + + + + kramdown + + + + + + + +
diff --git a/utility/helper.xsl b/utility/helper.xsl deleted file mode 100644 index 84b6b31..0000000 --- a/utility/helper.xsl +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - -- cgit v1.2.3