mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 08:44:20 +01:00
This commit is contained in:
parent
b973fed06b
commit
0a4c0c01fe
2 changed files with 19 additions and 6 deletions
|
|
@ -37,7 +37,7 @@ import {highlightRender} from "../render/highlightRender";
|
|||
import {blockRender} from "../render/blockRender";
|
||||
import {getContenteditableElement, getParentBlock, getTopAloneElement, isNotEditBlock} from "../wysiwyg/getBlock";
|
||||
import * as dayjs from "dayjs";
|
||||
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {cancelSB, genEmptyElement, getLangByType, insertEmptyBlock, jumpToParent,} from "../../block/util";
|
||||
import {countBlockWord} from "../../layout/status";
|
||||
import {Constants} from "../../constants";
|
||||
|
|
@ -2557,8 +2557,9 @@ export class Gutter {
|
|||
dataNodeId = nodeElement.getAttribute("data-node-id");
|
||||
}
|
||||
}
|
||||
if (type === "NodeListItem" && index === 1) {
|
||||
// 列表项中第一层不显示
|
||||
// - > # 1 \n > 2
|
||||
if (type === "NodeListItem" && index > 0) {
|
||||
// 列表项内的块不显示块标
|
||||
html = "";
|
||||
}
|
||||
index += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue