iblh / hexo-theme-material

Material Design theme for hexo.
https://iblh.github.io/material-demo/
GNU General Public License v3.0
4.03k stars 564 forks source link

列表和代码块的渲染样式有问题 #460

Open ElderJames opened 7 years ago

ElderJames commented 7 years ago

I certify that I have first consulted (check all with "x")

我确认我已经查看了 (使用 "x" 选择)


I'm submitting a (check one with "x")

我正在申请 (使用 "x" 选择)

image

image

去掉p标签后恢复正常 image 我想最多在代码块下适当留点空位就好。

neoFelhz commented 7 years ago

嗯。由于 Markdown 的语法的设计。Hexo 默认使用 hexo-generator-marked 即 Marked.js 作为解析器。你可以尝试通过额外换行的方式来避免代码块被归属在有序列表中的某一项。

ZhuangJiayu commented 7 years ago

额外换行会导致有序列表重新开始编号......我用的是canary分支

neoFelhz commented 7 years ago

@ZhuangJiayu 如果你使用的是 hexo-render-marked 渲染 Markdown,那么请遵循 Marked.js 的规则。