noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone git://git.noxz.tech/noxz-sites
Log | Files | Refs | README | LICENSE

commit 040e1d1b17c56437a976ca209c65a236d985e023
parent 97e83a81aefab7928738b46df98d00129ea6befa
Author: Chris Noxz <chris@noxz.tech>
Date:   Fri, 20 Sep 2019 15:35:30 +0200

Add support for em dash generation in markdown

Diffstat:
Mapply-extensions.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/apply-extensions.sh b/apply-extensions.sh @@ -15,9 +15,11 @@ fi # 1. inject div blocks {:: ...}, {::} # 2. inject block parameters {: ...} # 3. remove comments +# 4. replace 2 en dashs with 1 em dash find ./noxz.tech/ -name "*.html" -type f -print0 | \ xargs -0 sed -i \ -e 's,^\(<[^>]*>\){::\( .*\)}$,<div\2>\1,g' \ -e 's,^{::},</div>,g' \ -e 's,^<\([^>]*\)>{:\( .*\)}$,<\1\2>,g' \ - -e '/{% comment %}/,/{% endcomment %}/d' + -e '/{% comment %}/,/{% endcomment %}/d' \ + -e 's,--,–,g'