From da8a33160ff609025ba18986a6f671bf3e857a4d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 14 Feb 2016 23:00:23 +0100 Subject: Port `blog.kummerlaender.eu` code block handling for commit messages --- source/02_augment/commits.xsl | 1 - source/99_result/main.css | 1 + utility/formatter.xsl | 59 +++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 58 insertions(+), 3 deletions(-) diff --git a/source/02_augment/commits.xsl b/source/02_augment/commits.xsl index e9c4ae8..a2ad0b5 100644 --- a/source/02_augment/commits.xsl +++ b/source/02_augment/commits.xsl @@ -56,7 +56,6 @@ - markdown diff --git a/source/99_result/main.css b/source/99_result/main.css index 942ee53..48889bc 100644 --- a/source/99_result/main.css +++ b/source/99_result/main.css @@ -10,6 +10,7 @@ p{margin:0 0 .5em 0;text-align:justify;line-height:1.75em} ul{margin:0;overflow:hidden} ul li{list-style-type:circle;line-height:1.5em} code{margin:0 .1em;padding:0 .5em;border:.1em solid #e3e8e8;background-color:#f8f8f8;border-radius:.3em} +pre{padding:1em;border-radius:.75em;color:#f8f8f2;background:#272822;white-space:pre-wrap} #content{max-width:45em;margin:auto} .info{font-size:.8em;margin-bottom:.5em;display:block} .info a{margin:0 .1em 0 .1em} diff --git a/utility/formatter.xsl b/utility/formatter.xsl index d2c2f7c..2c7f3b9 100644 --- a/utility/formatter.xsl +++ b/utility/formatter.xsl @@ -2,11 +2,12 @@ - + @@ -16,4 +17,58 @@ )/self::command/node()"/> + + + + + + + + highlight --out-format=xhtml --inline-css --style=molokai --fragment --enclose-pre --wrap-simple --syntax= + + + + + + +
+		
+	
+
+ + + + + + + + + + + + + + + + + txt + + + + + + + + + + + + kramdown + + + + + + +
-- cgit v1.2.3