]> granicus.if.org Git - pdns/commitdiff
Process docs differently (closes #1962)
authorPieter Lexis <pieter@plexis.eu>
Fri, 19 Dec 2014 06:40:59 +0000 (07:40 +0100)
committerPieter Lexis <pieter@plexis.eu>
Fri, 19 Dec 2014 06:40:59 +0000 (07:40 +0100)
pdns/docs/process-md.sh

index 4c20d320c5c64484fb3ce912428930b6427fd47c..94075121d522af501cc3ab0e6beede6401fdee14 100755 (executable)
@@ -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 &gt; and &lt; 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/\<table>/<table class="table-bordered">/;' \
-    -e 's/\\&(gt|lt)/&\1/;' \
-    -e 's/\\\\/\\/g;' \
     {} +
 }