remove empty paragraphs arround tip

This commit is contained in:
Nitwel
2020-09-30 20:45:58 +02:00
parent 1002416a5b
commit eca9175ad2

View File

@@ -25,7 +25,7 @@ export default defineComponent({
}
let htmlString = slots.default()[0].text!;
const hintRegex = /:::(.*?) (.*?)\r?\n((\s|.)*?):::/gm;
const hintRegex = /<p>:::(.*?) (.*?)\r?\n((\s|.)*?):::<\/p>/gm;
htmlString = marked(htmlString, {
highlight: (code) => highlight.highlightAuto(code).value,