: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 to=html5
|
||||||
|
declare -i hlevel=1
|
||||||
|
|
||||||
while getopts nP opt; do
|
while getopts nPh: opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
n|P) to=plain;;
|
n|P) to=plain;;
|
||||||
|
h) hlevel="$OPTARG";;
|
||||||
esac
|
esac
|
||||||
done
|
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
|
while getopts nP opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
n) ;;
|
n|P) ;;
|
||||||
P) ;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -51,4 +50,4 @@ test "$timestamp" -gt "$md_cutoff" \
|
||||||
|| fmt-old
|
|| fmt-old
|
||||||
|
|
||||||
# it's just that simple.
|
# it's just that simple.
|
||||||
exec "$(dirname "$0" )"/mdfmt "${all_args[@]}"
|
exec "$(dirname "$0" )"/mdfmt -h2 "${all_args[@]}"
|
||||||
|
|
Loading…
Reference in New Issue