cookutils rev 1110
lighttpd/index.cgi: markdown-to-html converter 'sundown' requires patching, while 'cmark' - don't
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 03 11:24:15 2018 +0200 (2018-12-03) |
parents | 75961317d29b |
children | 4c3c5f4f177d |
files | lighttpd/index.cgi |
line diff
1.1 --- a/lighttpd/index.cgi Mon Dec 03 03:28:01 2018 +0200 1.2 +++ b/lighttpd/index.cgi Mon Dec 03 11:24:15 2018 +0200 1.3 @@ -2485,7 +2485,14 @@ 1.4 ;; 1.5 *.md|*.markdown) 1.6 echo '<section class="markdown">' 1.7 - $md2html "$tmp" | sed 's|class="|class="language-|g' 1.8 + case "$md2html" in 1.9 + *sundown) 1.10 + $md2html "$tmp" | sed 's|class="|class="language-|g' 1.11 + ;; 1.12 + *) 1.13 + $md2html "$tmp" 1.14 + ;; 1.15 + esac 1.16 echo '</section>' 1.17 ;; 1.18 *)