We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af01957 commit 0160fafCopy full SHA for 0160faf
app/composables/useMarkdown.ts
@@ -41,7 +41,7 @@ function stripAndEscapeHtml(text: string, packageName?: string): string {
41
)
42
43
// Strip HTML comments: <!-- ... --> (including unclosed comments from truncation)
44
- // Same alternation trick: preserve backtick spans so comments inside code are kept
+ // Strip HTML comments: <!-- ... --> (including unclosed comments from truncation)
45
stripped = stripped.replace(
46
/(`[^`]*`)|<!--[\s\S]*?(-->|$)/g,
47
(match, codeSpan: string | undefined) => codeSpan ?? '',
0 commit comments