From 46752194e45e09ac75fe0ab20f856aa6e1379c3d Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 12 Dec 2016 10:49:23 +0800 Subject: [PATCH] Update to make TOC syntax be case-insensitive --- public/js/extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/extra.js b/public/js/extra.js index 8ca1dcb..a4eed87 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -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) {