mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix markdown tag check (#611)
This commit is contained in:
1 parent
647cd4711e
commit
df94e5096f
1 file changed
+1
@@ -21,6 +21,7 @@ const tagCheck = new FilterXSS({
|
|||||||
}
|
}
|
||||||
if (stack.length - 2 >= 0 && stack[stack.length - 2] === tag) {
|
if (stack.length - 2 >= 0 && stack[stack.length - 2] === tag) {
|
||||||
// 可能丢失了一个结束标签
|
// 可能丢失了一个结束标签
|
||||||
|
html = `</${stack[stack.length - 1]}>${html}`;
|
||||||
stack.pop();
|
stack.pop();
|
||||||
stack.pop();
|
stack.pop();
|
||||||
return html;
|
return html;
|
||||||
|
|||||||
Reference in new issue
Block a user