From: Pieter Lexis Date: Fri, 19 Dec 2014 06:40:59 +0000 (+0100) Subject: Process docs differently (closes #1962) X-Git-Tag: rec-3.7.0-rc1~107^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e11f73c60bf9802ca49a6d3b6dd16705515173da;p=pdns Process docs differently (closes #1962) --- diff --git a/pdns/docs/process-md.sh b/pdns/docs/process-md.sh index 4c20d320c..94075121d 100755 --- a/pdns/docs/process-md.sh +++ b/pdns/docs/process-md.sh @@ -3,18 +3,17 @@ pre() { for file in `find doc-build -name '*.md' -type f -print`; do pandoc -f markdown_github+pipe_tables -t markdown_github+pipe_tables -F markdown/process-includes.py $file -o $file + perl -i -p \ + -e 's/\\([\$\*\^><])/\1/g;' \ + $file done } post() { # Change the following: - # 1. Add class="table-bordered" to tables - # 2. Fix > and < escaping fuckery - # 3. Fix $-sign escaping insanity + # Add class="table-bordered" to tables find html-new -type f -name '*.html' -exec perl -i -p \ -e 's/\/
/;' \ - -e 's/\\&(gt|lt)/&\1/;' \ - -e 's/\\\\/\\/g;' \ {} + }