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

标签元素渲染不出来 #56

Closed
hualyz opened this issue Dec 9, 2021 · 1 comment
Closed

标签元素渲染不出来 #56

hualyz opened this issue Dec 9, 2021 · 1 comment

Comments

@hualyz
Copy link

hualyz commented Dec 9, 2021

在表格或者链接描述中,填写的标签元素渲染不出来。

举例1:

image

cherry效果
image

typora效果
image

举例2:

企业微信截图_16390430162413

cherry效果
企业微信截图_16390430227462

typora效果
企业微信截图_16390430347875

@lyngai
Copy link
Collaborator

lyngai commented Dec 10, 2021

我们与typora的实现逻辑不同,可以看到给出的截图对应尖括号包裹的内容是被置灰的,说明也是被typora识别成了html标签,但还未闭合。

cherry针对这类未闭合的标签采取了清洗 / 转义或自动补全的策略(取决于标签名是否一个已知的 xml / html tag),所以在渲染结果处看不到对应的标签文本。


建议的做法是在左尖括号处加上转义符号,使之作为文本进行展示。例:\<map>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants