:Thoughts markdown header level sectioning increase
Thoughts are intended to be simple, and h2 is currently used for the datemaster
parent
6527ab6998
commit
32d4c11d98
|
@ -20,11 +20,13 @@
|
|||
##
|
||||
|
||||
declare to=html5
|
||||
declare -i hlevel=1
|
||||
|
||||
while getopts nP opt; do
|
||||
while getopts nPh: opt; do
|
||||
case "$opt" in
|
||||
n|P) to=plain;;
|
||||
h) hlevel="$OPTARG";;
|
||||
esac
|
||||
done
|
||||
|
||||
exec pandoc -S -fmarkdown -t"$to"
|
||||
exec pandoc -S -fmarkdown -t"$to" --base-header-level=$hlevel
|
||||
|
|
|
@ -29,8 +29,7 @@ declare -a all_args="$@"
|
|||
|
||||
while getopts nP opt; do
|
||||
case "$opt" in
|
||||
n) ;;
|
||||
P) ;;
|
||||
n|P) ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
@ -51,4 +50,4 @@ test "$timestamp" -gt "$md_cutoff" \
|
|||
|| fmt-old
|
||||
|
||||
# it's just that simple.
|
||||
exec "$(dirname "$0" )"/mdfmt "${all_args[@]}"
|
||||
exec "$(dirname "$0" )"/mdfmt -h2 "${all_args[@]}"
|
||||
|
|
Loading…
Reference in New Issue