mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-11-20 06:49:52 +01:00
fix html regex when generating editor output
This commit is contained in:
parent
07f9fa9d11
commit
6737661a86
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ const elementToCustomHtml = (node: CustomElement, children: string): string => {
|
|||
}
|
||||
};
|
||||
|
||||
const HTML_TAG_REG = /<([\w-]+)(?:[^>]*)(?:(?:\/>)|(?:>.*?<\/\1>))/;
|
||||
const HTML_TAG_REG = /<([\w-]+)(?:[^/>]*)(?:(?:\/>)|(?:>.*?<\/\1>))/;
|
||||
const ignoreHTMLParseInlineMD = (text: string): string => {
|
||||
if (text === '') return text;
|
||||
const match = text.match(HTML_TAG_REG);
|
||||
|
|
Loading…
Reference in a new issue