Skip to content

Commit 0160faf

Browse files
authored
chore: restore comment
1 parent af01957 commit 0160faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/composables/useMarkdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function stripAndEscapeHtml(text: string, packageName?: string): string {
4141
)
4242

4343
// Strip HTML comments: <!-- ... --> (including unclosed comments from truncation)
44-
// Same alternation trick: preserve backtick spans so comments inside code are kept
44+
// Strip HTML comments: <!-- ... --> (including unclosed comments from truncation)
4545
stripped = stripped.replace(
4646
/(`[^`]*`)|<!--[\s\S]*?(-->|$)/g,
4747
(match, codeSpan: string | undefined) => codeSpan ?? '',

0 commit comments

Comments
 (0)