mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
0caf534464
commit
d799005245
1 changed files with 5 additions and 0 deletions
|
|
@ -654,5 +654,10 @@ export const getKeyByLiElement = (element: HTMLElement) => {
|
|||
element.querySelectorAll(".b3-list-item__text mark").forEach(item => {
|
||||
keys.push(item.textContent);
|
||||
});
|
||||
if (keys.length === 0) {
|
||||
element.querySelectorAll(".b3-list-item__meta mark").forEach(item => {
|
||||
keys.push(item.textContent);
|
||||
});
|
||||
}
|
||||
return [...new Set(keys)].join(" ");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue