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: md 的 table 格式里 TS 的泛型解析报错 #1950

Closed
RedJue opened this issue Oct 25, 2023 · 1 comment
Closed

bug: md 的 table 格式里 TS 的泛型解析报错 #1950

RedJue opened this issue Oct 25, 2023 · 1 comment
Labels
question Further information is requested

Comments

@RedJue
Copy link

RedJue commented Oct 25, 2023

Version

2.2.13

OS Version

macOS 14.0

Node.js Version

16.14.0

Browser Version

Chorme 118.0.5993.88

Link to minimal reproduction

Steps to reproduce

image
在 API 文档里添加泛型类型

What is expected?

不报错,正常解析

What is actually happening?

image 解析报错

Any additional comments? (optional)

应该是 table 里 TS 的泛型没有处理解析,当成 html 元素了,加转义FlattenOptionData\<BaseOptionType\> 之后能正常解析。

@PeachScript
Copy link
Member

<> 是需要手动转义成 &lt;&gt;的,否则会识别成自定义组件做渲染;GitHub 的 Markdown 转换也不会自动做转义,而是把它当做不识别的 HTML 标签过滤掉

@PeachScript PeachScript closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
@PeachScript PeachScript added question Further information is requested and removed unconfirmed labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants