mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
107284c799
commit
2fe3534ffd
1 changed files with 2 additions and 2 deletions
|
|
@ -41,9 +41,9 @@ export const getTextStar = (blockElement: HTMLElement, contentOnly = false) => {
|
||||||
} else if (blockElement.classList.contains("render-node")) {
|
} else if (blockElement.classList.contains("render-node")) {
|
||||||
// 需在嵌入块后,代码块前
|
// 需在嵌入块后,代码块前
|
||||||
refText += blockElement.dataset.subtype || Lute.UnEscapeHTMLStr(blockElement.getAttribute("data-content"));
|
refText += blockElement.dataset.subtype || Lute.UnEscapeHTMLStr(blockElement.getAttribute("data-content"));
|
||||||
} else if (["NodeBlockquote", "NodeList", "NodeSuperBlock", "NodeListItem"].includes(dataType)) {
|
} else if (["NodeBlockquote", "NodeCallout", "NodeList", "NodeSuperBlock", "NodeListItem"].includes(dataType)) {
|
||||||
Array.from(blockElement.querySelectorAll("[data-node-id]")).find((item: HTMLElement) => {
|
Array.from(blockElement.querySelectorAll("[data-node-id]")).find((item: HTMLElement) => {
|
||||||
if (!["NodeBlockquote", "NodeList", "NodeSuperBlock", "NodeListItem"].includes(item.getAttribute("data-type"))) {
|
if (!["NodeBlockquote", "NodeCallout", "NodeList", "NodeSuperBlock", "NodeListItem"].includes(item.getAttribute("data-type"))) {
|
||||||
// 获取子块内容,使用容器块本身的 ID
|
// 获取子块内容,使用容器块本身的 ID
|
||||||
refText = getTextStar(item, true);
|
refText = getTextStar(item, true);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue