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:
11
tests/fixtures/markdowns.js
vendored
11
tests/fixtures/markdowns.js
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user