hexo icon indicating copy to clipboard operation
hexo copied to clipboard

对于无序列表中的代码块渲染出错

Open QSlotus opened this issue 2 years ago • 2 comments

如题。 这是我的markdown内容: image 在vscode自带的markdown渲染中是正常的: image 而使用 hexo s 后预览的界面却渲染错误: image

QSlotus avatar Mar 10 '24 07:03 QSlotus

问题和 https://github.com/hexojs/hexo/issues/5423 原因类似,目前不太好处理

stevenjoezhang avatar Mar 11 '24 05:03 stevenjoezhang

无序列表中添加代码实际上是不符合markdown标准格式的,需要额外做适配。比如在typora和vscode中就可以,但是在obsidian中就不可以。 因此,建议在写代码块时就直接另起一行,这样兼容性更好,不然即使在hexo中解决了,在其他平台也可能出问题。

Liu8Can avatar Oct 10 '24 11:10 Liu8Can

这个 Issue 先关了,请加入 #5423 的讨论

stevenjoezhang avatar Dec 23 '24 20:12 stevenjoezhang