Skip to content
Snippets Groups Projects
Unverified Commit a3207c97 authored by anarcat's avatar anarcat
Browse files

allow checklists in numbered lists too

parent 7f0b5313
No related branches found
No related tags found
No related merge requests found
......@@ -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..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment