mirror of
https://github.com/directus/directus.git
synced 2026-01-30 02:07:57 -05:00
remove empty paragraphs arround tip
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user