Fixed TOC only showing up to 2 levels instead of 3 (#260)

This commit is contained in:
Erik Michelson 2020-06-23 21:43:52 +02:00 committed by GitHub
parent a03e341f22
commit 6a808e76d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,7 @@ const MarkdownRenderer: React.FC<MarkdownPreviewProps> = ({ content }) => {
permalinkSymbol: '<i class="fa fa-link"></i>'
})
md.use(toc, {
includeLevel: [1, 2, 3],
markerPattern: /^\[TOC]$/i
})
md.use(mathJax({