mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
Add toggles for global Toc changes.
This commit is contained in:
@@ -94,6 +94,58 @@ module.exports = [
|
||||
background-image: linear-gradient(-45deg, #322814, #998250, #322814);
|
||||
line-height: 1em;
|
||||
}\n\n`
|
||||
},
|
||||
{
|
||||
name : 'Table of Contents Toggles',
|
||||
icon : 'fas fa-book',
|
||||
gen : dedent`/* Add ToC include for H3, H4, H5, and H6 level Headers */
|
||||
{
|
||||
h3, h4, h5, h6 {
|
||||
--TOC: include;
|
||||
}
|
||||
}\n\n`,
|
||||
subsnippets : [
|
||||
{
|
||||
name : 'Enable H1-H3 all pages',
|
||||
icon : 'fas fa-dice-three',
|
||||
gen : dedent`/* Add ToC include for H3 level Headers */
|
||||
{
|
||||
h3 {
|
||||
--TOC: include;
|
||||
}
|
||||
}\n\n`
|
||||
},
|
||||
{
|
||||
name : 'Enable H1-H4 all pages',
|
||||
icon : 'fas fa-dice-four',
|
||||
gen : dedent`/* Add ToC include for H3 and H4 level Headers */
|
||||
{
|
||||
h3, h4 {
|
||||
--TOC: include;
|
||||
}
|
||||
}\n\n`
|
||||
},
|
||||
{
|
||||
name : 'Enable H1-H5 all pages',
|
||||
icon : 'fas fa-dice-five',
|
||||
gen : dedent`/* Add ToC include for H3, H4, and H5 level Headers */
|
||||
{
|
||||
h3, h4, h5 {
|
||||
--TOC: include;
|
||||
}
|
||||
}\n\n`
|
||||
},
|
||||
{
|
||||
name : 'Enable H1-H6 all pages',
|
||||
icon : 'fas fa-dice-six',
|
||||
gen : dedent`/* Add ToC include for H3, H4, H5, and H6 level Headers */
|
||||
{
|
||||
h3, h4, h5, h6 {
|
||||
--TOC: include;
|
||||
}
|
||||
}\n\n`
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user