Unverified Commit a3207c97 authored by anarcat's avatar anarcat
Browse files

allow checklists in numbered lists too

parent 7f0b5313
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -11,7 +11,7 @@ for path in "$@"; do
            *.md|*.mdwn|*.markdown)
            *.md|*.mdwn|*.markdown)
                echo "checking file $path..."
                echo "checking file $path..."
                # this also removes [x] style checklists which kramdown doesn't like
                # 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
        esac
    else
    else
        echo "checking $path..."
        echo "checking $path..."