This commit is contained in:
Vanessa 2022-10-18 11:51:15 +08:00
parent 0dc5f64a41
commit 5e0e054db8

View file

@ -1695,6 +1695,10 @@ export class Gutter {
}
const topElement = getTopAloneElement(nodeElement);
listItem = topElement.querySelector(".li") || topElement.querySelector(".list");
// 嵌入块中有列表时块标显示位置错误 https://github.com/siyuan-note/siyuan/issues/6254
if (hasClosestByAttribute(listItem, "data-type", "NodeBlockQueryEmbed")) {
listItem = undefined;
}
// 标题必须显示
if (!topElement.isSameNode(nodeElement) && type !== "NodeHeading") {
nodeElement = topElement;