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

目录渲染BUG,段落中的 # 号后的内容被渲染为一号标题 #12

Closed
chenrizhi opened this issue Sep 1, 2022 · 3 comments
Closed

Comments

@chenrizhi
Copy link

段落中的 # 号后的内容被渲染为一号标题了,如图。

# 是被反引号包起来的

使用 `#` 号

image

@Mereithhh
Copy link
Owner

感谢反馈!我会尽快处理

@Mereithhh
Copy link
Owner

目录组件采用了 markdown-navbar ,根据其文档,从设计上,目录组件只会解析二级标题及以下的级别,因为一级标题一般只会出现一次,从而不会解析一级标题:

Tips

但解析了反引号中的 # 明显是错误的,暂时我将通过屏蔽反引号中的#号来修复这个问题。

至于一级标题的目录支持,可能需要魔改原有组件库或者自己实现一套更好的逻辑,我会加入排期中。

暂时而言可以用二级标题来替换一级标题。

@Mereithhh
Copy link
Owner

这个问题已经在 v0.27.1 中被修复了,issue 先关了,有问题再提。

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