diff --git a/app/src/modules/docs/routes/markdown.vue b/app/src/modules/docs/routes/markdown.vue index a5a6a7ebac..dfbb90c141 100644 --- a/app/src/modules/docs/routes/markdown.vue +++ b/app/src/modules/docs/routes/markdown.vue @@ -23,12 +23,10 @@ export default defineComponent({ html.value = ''; return; } - - let htmlString = marked(slots.default()[0].text!, { - highlight: (code) => highlight.highlightAuto(code).value, - }); - - const hintRegex = /:::(.*?) (.*?)\n((\s|.)*?):::/gm; + + let htmlString = slots.default()[0].text! + + const hintRegex = /:::(.*?) (.*?)\r?\n((\s|.)*?):::/gm; htmlString = htmlString.replaceAll( hintRegex, @@ -37,6 +35,10 @@ export default defineComponent({ } ); + let htmlString = marked(htmlString, { + highlight: (code) => highlight.highlightAuto(code).value, + }); + html.value = htmlString; } },