1
0
Fork 0
arangodb/Doxygen/Scripts/pandoc.sh

13 lines
272 B
Bash
Executable File

#!/bin/bash
INPUT="$1"
OUTPUT="Doxygen/wiki/`basename $INPUT`"
pandoc -f markdown -t markdown -o $OUTPUT.tmp $INPUT || exit 1
cat $OUTPUT.tmp \
| sed -e 's:\(GET\|PUT\|DELETE\|POST\) /\\_:\1 /_:g' \
| sed -e 's:^/\\_:/_:g' \
> $OUTPUT || exit 1
rm -f $OUTPUT.tmp