mirror of
https://github.com/docmost/docmost.git
synced 2025-11-24 12:21:09 +10:00
3 levels
This commit is contained in:
@ -24,7 +24,9 @@ export const TableOfContentsNodeview = memo(
|
||||
<div className={classes.header}>Table of contents</div>
|
||||
{content.length > 0 ? (
|
||||
<div className={classes.container}>
|
||||
{content.map((item) => (
|
||||
{content
|
||||
.filter((item) => item.level <= 3)
|
||||
.map((item) => (
|
||||
<a
|
||||
key={item.id}
|
||||
href={`#${item.id}`}
|
||||
|
||||
Reference in New Issue
Block a user