mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -56,7 +56,7 @@ export const removeSearchMark = (element: HTMLElement) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (element.getAttribute("data-type").includes("search-mark")) {
|
||||
if ((element.getAttribute("data-type") || "").includes("search-mark")) {
|
||||
element.setAttribute("data-type", element.getAttribute("data-type").replace("search-mark", "").trim());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user