From e11f73c60bf9802ca49a6d3b6dd16705515173da Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 19 Dec 2014 07:40:59 +0100 Subject: [PATCH] Process docs differently (closes #1962) --- pdns/docs/process-md.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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;' \ {} + } -- 2.49.0