1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-16 03:06:27 +00:00

feat: suppport auto generating toc content for the '[TOC]' placeholder, related #3022

This commit is contained in:
hikerpig
2019-07-27 13:03:20 +08:00
parent 93b8ef35f7
commit 8edfbd28ed
7 changed files with 70 additions and 1 deletions

View File

@@ -109,6 +109,14 @@ const footnote = `
hello-world: https://github.com/BoostIO/Boostnote/
`
const tocPlaceholder = `
[TOC]
# H1
## H2
### H3
###$ H4
`
export default {
basic,
codeblock,
@@ -121,5 +129,6 @@ export default {
supTexts,
deflists,
shortcuts,
footnote
footnote,
tocPlaceholder
}