Skip to content

Commit b722c4a

Browse files
committed
fix: Vue server renderer does not render \r causes hydration issue
1 parent ac3f925 commit b722c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/parser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const parseMarkdown = async (md: string, markdownParserOptions: MDCParseO
148148
const parser = await createMarkdownParser(markdownParserOptions)
149149

150150
// Parse markdown
151-
return parser(md, parseOptions)
151+
return parser(md.replace(/\r\n/g, '\n'), parseOptions)
152152
}
153153

154154
export function contentHeading(body: MDCRoot) {

0 commit comments

Comments
 (0)