mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 02:09:59 +08:00
This commit is contained in:
parent
c03a80263f
commit
834a736293
@ -224,6 +224,15 @@ export class Preview {
|
|||||||
copyElement.querySelectorAll("mjx-container > svg").forEach((item) => {
|
copyElement.querySelectorAll("mjx-container > svg").forEach((item) => {
|
||||||
item.setAttribute("width", (parseInt(item.getAttribute("width")) * 8) + "px");
|
item.setAttribute("width", (parseInt(item.getAttribute("width")) * 8) + "px");
|
||||||
});
|
});
|
||||||
|
// 列表嵌套 https://github.com/siyuan-note/siyuan/issues/11276
|
||||||
|
copyElement.querySelectorAll("ul, ol").forEach(listItem => {
|
||||||
|
Array.from(listItem.children).forEach(liItem => {
|
||||||
|
const nestedList = liItem.querySelector("ul, ol");
|
||||||
|
if (nestedList) {
|
||||||
|
liItem.parentNode.insertBefore(nestedList, liItem.nextSibling);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
} else if (type === "zhihu") {
|
} else if (type === "zhihu") {
|
||||||
this.link2online(copyElement);
|
this.link2online(copyElement);
|
||||||
copyElement.querySelectorAll('[data-subtype="math"]').forEach((item: HTMLElement) => {
|
copyElement.querySelectorAll('[data-subtype="math"]').forEach((item: HTMLElement) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user