diff --git a/bin/mdl-wrapper b/bin/mdl-wrapper index 05f52409c03058cba2e9486d4dffdd8a2dc262a6..71c54e40f2806a54fe05b961d53b80c5c6eb3cd5 100755 --- a/bin/mdl-wrapper +++ b/bin/mdl-wrapper @@ -11,7 +11,7 @@ for path in "$@"; do *.md|*.mdwn|*.markdown) echo "checking file $path..." # this also removes [x] style checklists which kramdown doesn't like - sed 's/^\[\[_TOC_\]\]/TOC_PLACEHOLDER/;s/^ *[*-] \[[x ]\] /\* /' "$path" | mdl - ;; + sed 's/^\[\[_TOC_\]\]/TOC_PLACEHOLDER/;s/^ *\([*-]\|[0-9][0-9]*\.\) *\[[x ]\] /\* /' "$path" | mdl - ;; esac else echo "checking $path..."