1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Automatic table of contents generation for Markdown

Adds table of contents for any Markdown note or
Markdown snippet.
Consequent generations update existing TOC.
Generated TOC is case sensitive to handle #2067

Shortcut : CommandOrControl+Alt+T
Menu : Edit/Generate/Update Markdown TOC
This commit is contained in:
Maciek
2018-08-10 21:39:59 +02:00
parent 79fb04126c
commit 7804a22984
6 changed files with 87 additions and 1 deletions

View File

@@ -228,6 +228,16 @@ const edit = {
click () {
mainWindow.webContents.send('editor:add-tag')
}
},
{
type: 'separator'
},
{
label: 'Generate/Update Markdown TOC',
accelerator: 'CommandOrControl+Alt+T',
click () {
mainWindow.webContents.send('code:generate-toc')
}
}
]
}