Skip to content

Commit

Permalink
Fix recursion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 1, 2024
1 parent 98ddab1 commit e1ccda8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function render(Node $node, ChildNodeRendererInterface $childRenderer): s
return view('hyde::components.markdown-heading', [
'level' => $node->getLevel(),
'slot' => $content,
'addPermalink' => config('markdown.features.permalinks', true),
'addPermalink' => config('markdown.features.permalinks', true) && ! str_contains($content, 'class="heading-permalink"'),
])->render();

Check warning on line 31 in packages/framework/src/Markdown/Processing/HeadingRenderer.php

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Markdown/Processing/HeadingRenderer.php#L27-L31

Added lines #L27 - L31 were not covered by tests
}
}

0 comments on commit e1ccda8

Please sign in to comment.