home · contact · privacy
Clean up heading logic for .rst and .md interpretation.
[redo-blog] / processor / metadata / default.intermediate.do
index adcd2eb93b065d70db7ad7250aa4198ea2627958..a09d4b2e5022c884a2fe61832d205940582501fa 100644 (file)
@@ -8,8 +8,8 @@ mdfile="../${1%.intermediate}.md"
 rstfile="../${1%.intermediate}.rst"
 if [ -f "$rstfile" ]; then
   redo-ifchange "$rstfile"
-  pandoc -f rst --template="$template" --mathml -t html5 "$rstfile" > "$3"
+  pandoc -f rst --template="$template" --mathml -t html5 "$rstfile" --base-header-level=2 > "$3"
 elif [ -f "$mdfile" ]; then
   redo-ifchange "$mdfile"
-  pandoc -f markdown --template="$template" --mathml -t html5 "$mdfile" > "$3"
+  pandoc -f markdown --template="$template" --mathml -t html5 "$mdfile" --base-header-level=2 > "$3"
 fi