mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-27 10:46:09 +01:00
This commit is contained in:
parent
1d8fc82fe9
commit
e2baff310c
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ export const previewTemplate = (pathString: string, element: Element, parentId:
|
|||
};
|
||||
|
||||
const mergeElement = (a: Element, b: Element, after = true) => {
|
||||
if (!a.getAttribute("data-type") || !b.getAttribute("data-type")) {
|
||||
return false;
|
||||
}
|
||||
a.setAttribute("data-type", a.getAttribute("data-type").replace("search-mark", "").trim());
|
||||
b.setAttribute("data-type", b.getAttribute("data-type").replace("search-mark", "").trim());
|
||||
const attributes = a.attributes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue