match <p></p> when replacing hint

This commit is contained in:
Nitwel
2020-09-30 17:54:02 +02:00
committed by GitHub
parent e0f0f0d740
commit cefd8f1847

View File

@@ -28,7 +28,7 @@ export default defineComponent({
highlight: (code) => highlight.highlightAuto(code).value,
});
const hintRegex = /:::(.*?) (.*?)\n((\s|.)*?):::/gm;
const hintRegex = /<p>:::(.*?) (.*?)\n((\s|.)*?):::<\/p>/gm;
htmlString = htmlString.replaceAll(
hintRegex,