Skip to content

Commit 20c9606

Browse files
authored
fix: Remove # links from content (#46)
1 parent 9b5af06 commit 20c9606

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/TiptapConverter.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -307,19 +307,6 @@ public function parseHeadings(Editor $editor, int $maxDepth = 3): Editor
307307
return $node?->text ?? null;
308308
})->implode(' '))->kebab()->toString();
309309
}
310-
311-
array_unshift($node->content, (object) [
312-
'type' => 'text',
313-
'text' => '#',
314-
'marks' => [
315-
[
316-
'type' => 'link',
317-
'attrs' => [
318-
'href' => '#' . $node->attrs->id,
319-
],
320-
],
321-
],
322-
]);
323310
});
324311

325312
return $editor;

0 commit comments

Comments
 (0)