Update to make TOC syntax be case-insensitive

This commit is contained in:
Wu Cheng-Han 2016-12-12 10:49:23 +08:00
parent 36aa15f339
commit 46752194e4

View file

@ -1032,7 +1032,7 @@ var gistPlugin = new Plugin(
//TOC
var tocPlugin = new Plugin(
// regexp to match
/^\[TOC\]$/,
/^\[TOC\]$/i,
// this function will be called when something matches
function (match, utils) {