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

列表显示异常 #39

Open
zhaokuohaha opened this issue May 3, 2019 · 1 comment
Open

列表显示异常 #39

zhaokuohaha opened this issue May 3, 2019 · 1 comment

Comments

@zhaokuohaha
Copy link

markdown 里面的无序列表, 只会将列表往里缩进, 但是不会出现列表的点或者序号, 有序列表和无序列表都是这样

image

image

但是好像生成的html也是没有问题的, 看了下mavon-editor 的项目, 那边的渲染是正常的

@zhaokuohaha
Copy link
Author

找到原因了, 是因为 vant 给初始化成list-style: none 了, 我放了一个全局的css来修改, 但是我fork的版本魔改太多了, 感觉不好提pr:

.markdown-body ol{
    list-style-type: decimal !important;
}
.markdown-body ul{
    list-style-type: disc !important;
}

.markdown-body ol ol,
.markdown-body ul ol {
    list-style-type: lower-roman !important;
}
.markdown-body ol ul,
.markdown-body ul ul {
    list-style-type: circle !important;
}

.markdown-body ol ol ol,
.markdown-body ol ul ol,
.markdown-body ul ol ol,
.markdown-body ul ul ol {
    list-style-type: lower-alpha !important;
}
.markdown-body ol ol ul,
.markdown-body ol ul ul,
.markdown-body ul ol ul,
.markdown-body ul ul ul {
    list-style-type: square !important;
}

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

1 participant