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

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

Open
QSlotus opened this issue Mar 10, 2024 · 2 comments
Open

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

QSlotus opened this issue Mar 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@QSlotus
Copy link

QSlotus commented Mar 10, 2024

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

@stevenjoezhang
Copy link
Member

问题和 #5423 原因类似,目前不太好处理

@uiolee uiolee transferred this issue from hexojs/hexo-renderer-marked Apr 2, 2024
@uiolee uiolee added the bug Something isn't working label Apr 2, 2024
@Liu8Can
Copy link

Liu8Can commented Oct 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants