From 3ad0755c361e24fff61253497a5cb1a9013632c0 Mon Sep 17 00:00:00 2001 From: David Bolack Date: Sun, 15 Sep 2024 18:33:14 -0500 Subject: [PATCH] Correct ToC Global toggles subsnippets The snippets incorrectedly reflected their previous incarnation as part of the Styles tab menus. --- themes/V3/5ePHB/snippets.js | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/themes/V3/5ePHB/snippets.js b/themes/V3/5ePHB/snippets.js index 5823a8848..c3094abc4 100644 --- a/themes/V3/5ePHB/snippets.js +++ b/themes/V3/5ePHB/snippets.js @@ -155,36 +155,24 @@ module.exports = [ }, { - name : 'Table of Contents Toggles', - icon : 'fas fa-book', - gen : dedent`/* Add ToC include for H3, H4, H5, and H6 level Headers */ - .page h3, .page h4, .page h5, .page h6 { - --TOC: include; - }\n\n`, + name : 'Table of Contents Toggles', + icon : 'fas fa-book', + gen : `{{tocGlobalH4}}\n\n`, subsnippets : [ { name : 'Enable H1-H4 all pages', icon : 'fas fa-dice-four', - gen : dedent`/* Add ToC include for H3 and H4 level Headers */ - .page h3, .page h4 { - --TOC: include; - }\n\n` + gen : `{{tocGlobalH4}}\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 */ - .page h3, .page h4, .page h5 { - --TOC: include; - }\n\n` + gen : `{{tocGlobalH5}}\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 */ - .page h3, .page h4, .page h5, .page h6 { - --TOC: include; - }\n\n` + gen : `{{tocGlobalH6}}\n\n`, }, ] }