0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 09:42:43 +00:00

Add requested additions to code

Add snippet additions to handle Add h4, Add h4-h5, add h4-h6
Add collection of headers h4-h6 and rendering of h4 to h6.
This commit is contained in:
David Bolack
2024-03-25 16:13:07 -05:00
parent 1705e66be2
commit 7ca10ff5a4
3 changed files with 120 additions and 8 deletions

View File

@@ -21,9 +21,34 @@ module.exports = [
view : 'text',
snippets : [
{
name : 'Table of Contents',
icon : 'fas fa-book',
gen : TableOfContentsGen
name : 'Table of Contents',
icon : 'fas fa-book',
gen : TableOfContentsGen,
subsnippets : [
{
name : 'Table of Contents',
icon : 'fas fa-book',
gen : TableOfContentsGen,
},
{
name : 'Include H4',
icon : 'fas fa-dice-four',
gen : dedent `{{tocH4
}}`,
},
{
name : 'Include H4, H5',
icon : 'fas fa-dice-five',
gen : dedent `{{tocH5
}}`,
},
{
name : 'Include H4-H6',
icon : 'fas fa-dice-six',
gen : dedent `{{tocH6
}}`,
},
]
},
{
name : 'Index',