From cb900f19b1c5980a1d1d457f227f26f6f0249983 Mon Sep 17 00:00:00 2001 From: "kts of kettek (nanomo)" Date: Thu, 9 Aug 2018 00:46:43 -0700 Subject: [PATCH] Update markdown-it and use alternative markdown-it-table-of-contents --- index.js | 2 +- package.json | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index c46aa71..ac235bd 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,7 @@ var m_markdownit = require('markdown-it')({ typographer: true }); m_markdownit.use(require('markdown-it-anchor')); -m_markdownit.use(require('markdown-it-table-of-contents'), {includeLevel: "2-8"}); +m_markdownit.use(require('markdown-it-table-of-contents-with-heading'), {includeLevel: [1,2,3,4,5,6,7,8], forceFullToc: true}); m_markdownit.use(require('markdown-it-deflist')); m_markdownit.use(require('markdown-it-header-sections')); m_markdownit.use(require('markdown-it-sup')); diff --git a/package.json b/package.json index a934912..8a0f64d 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,14 @@ "author": "kts of kettek (https://kettek.net/)", "license": "GPLv3", "dependencies": { - "chokidar": "^1.4.2", + "chokidar": "^1.7.0", "cors": "^2.8.4", - "formidable": "^1.0.17", - "markdown-it": "^5.0.2", - "markdown-it-anchor": "^2.3.2", - "markdown-it-deflist": "^2.0.0", + "formidable": "^1.2.1", + "markdown-it": "^5.1.0", + "markdown-it-anchor": "^2.7.1", + "markdown-it-deflist": "^2.0.3", "markdown-it-header-sections": "^0.2.0", "markdown-it-sup": "^1.0.0", - "markdown-it-table-of-contents": "^0.1.2" + "markdown-it-table-of-contents-with-heading": "^0.3.3" } }