Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无序列表阅读模式下显示异常 #1722

Open
zchy052 opened this issue Feb 20, 2024 · 3 comments
Open

无序列表阅读模式下显示异常 #1722

zchy052 opened this issue Feb 20, 2024 · 3 comments

Comments

@zchy052
Copy link

zchy052 commented Feb 20, 2024

无序列表在阅读模式下显示异常
mmexport1708407389853

@suziwen
Copy link
Owner

suziwen commented Feb 20, 2024

没看出有什么异常?

@zchy052
Copy link
Author

zchy052 commented Feb 21, 2024

右侧预览那边间隔好像不太对,我其实也不太确定是不是语法写错了,以前的习惯是用tab缩进
图中一级和二级item的间隔与二级和三级item的间隔不大一样

mmexport1708477816618

@suziwen
Copy link
Owner

suziwen commented Feb 21, 2024

这个是 markdown 语法的一个特性,暂时不认为是 bug.

markdown 里,列表项内的元素,有纯行内元素,有块级元素。如果列表项之间全都没有空行,这个列表项一般就直接判定为行内列表项,也就是下面图片里,间隔比较小的列表项。

如果列表项里,只要有一项有空行,系统就会判定当前层级下的的有列表项都是块级列表项。注意,只是当前层级,他的子级列表项可能还是行内列表项。

image

觉得不太习惯的话,或者想强行修改的话,可以用小书匠自定义 css 样式,添加下面的代码,将空隙全部统一起来。

li > p {
   margin: 0;
}

测试的代码

- aaa
   - vvvv
- vbbbb

这个暂时先不认为是




- sdfdsf
- sdfsdfsfsfs
	- sdfsdfdsf
	- ssssss
	- sss
- sdfsdfsdfdsf


- 项目一
	- 项目1.1


	- sss1.2
	- 项目1.3
- 工程2
	- 工程 2.1
	- sdfasdf2.3
- 业务一

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants