Skip to content

Commit ec1d77e

Browse files
committed
fix: merge artifact
1 parent 4457658 commit ec1d77e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/utils/readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ ${html}
648648
// Strip trailing whitespace (tabs/spaces) from code block closing fences.
649649
// While marky-markdown handles these gracefully, marked fails to recognize
650650
// the end of a code block if the closing fences are followed by unexpected whitespaces.
651-
const normalizedContent = content.replace(/^( {0,3}(?:`{3,}|~{3,}))\s*$/gm, '$1')
651+
const normalizedContent = markdownBody.replace(/^( {0,3}(?:`{3,}|~{3,}))\s*$/gm, '$1')
652652
const rawHtml = frontmatterHtml + (marked.parse(normalizedContent) as string)
653653

654654
const sanitized = sanitizeHtml(rawHtml, {

0 commit comments

Comments
 (0)