mirror of
https://github.com/docmost/docmost.git
synced 2026-08-26 08:52:19 +10:00
fix: safe editor
This commit is contained in:
@@ -25,7 +25,7 @@ const recalculateLinks = (nodePos: NodePos[]) => {
|
||||
(acc, item) => {
|
||||
const label = item.node.textContent;
|
||||
const level = Number(item.node.attrs.level);
|
||||
if (label.length && level <= 4) {
|
||||
if (label.length && level <= 6) {
|
||||
acc.push({
|
||||
label,
|
||||
level,
|
||||
|
||||
Reference in New Issue
Block a user