@hyperbook/markdown 0.29.3 → 0.29.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -65879,7 +65879,7 @@ var getHeadings = (root5) => {
|
|
|
65879
65879
|
|
|
65880
65880
|
// src/rehypeTableOfContents.ts
|
|
65881
65881
|
var rehypeTableOfContents_default = (ctx) => () => {
|
|
65882
|
-
const showToc = (ctx.config.toc ?? true)
|
|
65882
|
+
const showToc = (ctx.config.toc ?? true) && (ctx.navigation.current?.toc ?? true);
|
|
65883
65883
|
return (tree, file) => {
|
|
65884
65884
|
const headings = file.data.headings || [];
|
|
65885
65885
|
const originalChildren = tree.children;
|