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 Report]代码段注释解析异常 #885

Open
2 of 3 tasks
recrute opened this issue Aug 30, 2024 · 6 comments
Open
2 of 3 tasks

[Bug Report]代码段注释解析异常 #885

recrute opened this issue Aug 30, 2024 · 6 comments

Comments

@recrute
Copy link

recrute commented Aug 30, 2024

Prerequisites

Describe the Bug

h2

h3

h3 to


上文中,### h3 to 无法正常显示,应该是受 注释符号影响。

Reproduction Steps

No response

System Information

No response

Contributing

None

@recrute recrute added the 🐞bug Something isn't working label Aug 30, 2024
@sunsonliu
Copy link
Collaborator

额。。抱歉没能重现出来,想问下在这里可以重现么,如果可以重现的话,可以把md原文发出来看看不(用 代码块语法包住,这样github这里就不会渲染md原文了),类似这样:

```
## h2
### h3
### h3 to
```

@recrute
Copy link
Author

recrute commented Aug 30, 2024

md 原文

## h2

### h3

<!-- ```plantuml
@startuml

@enduml
``` -->

### h3 to

@recrute
Copy link
Author

recrute commented Aug 30, 2024

这里 用上面的 md 原文可以重现的。

@sunsonliu
Copy link
Collaborator

破案,是“代码块自动闭合”导致的问题,只要关掉代码块自动闭合就好了,关掉的方法如下:
image

关掉后效果如下:

image

@sunsonliu sunsonliu removed the 🐞bug Something isn't working label Sep 3, 2024
@recrute
Copy link
Author

recrute commented Sep 3, 2024

非常感谢,是添加箭头指向的两个配置吗?

个人愚见:一些扩展功能相关的逻辑,应该默认配置为不影响合法的编写。

@sunsonliu
Copy link
Collaborator

非常感谢,是添加箭头指向的两个配置吗?

个人愚见:一些扩展功能相关的逻辑,应该默认配置为不影响合法的编写。

是的,添加那两个配置就好了。。。
关于扩展功能,我又仔细看了下,codeBlock.selfClosing 确实应该默认为true,因为其他平台的md编辑器也是这么支持的。出问题还是因为代码块自动闭合没有考虑到这种情况,我们处理下哈。(上述的配置是临时解决方案)

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