We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[email protected]中, 通过
<embed src="./xxx.tsx"/>
可以解析出 ./xxx.tsx 的内容
./xxx.tsx
现在 2.x 版本中, 会将 整个 ./xxx.tsx 的内容都当作 md进行解析,导致一些 组件无法正常渲染
期望能像 1.x版本一样, 对tsx进行解析。或者能够给一个比较良好的升级方案。
The text was updated successfully, but these errors were encountered:
不支持 tsx,v1 文档的 embed 用法里也是仅支持 md 的,如果你测试 tsx 能工作应该只是巧合
embed
如果是期望直接嵌入式渲染一个 react 组件,可以使用 code 标签引入 tsx 并加上 inline 属性
code
inline
Sorry, something went wrong.
No branches or pull requests
[email protected]中, 通过
可以解析出
./xxx.tsx
的内容现在 2.x 版本中, 会将 整个 ./xxx.tsx 的内容都当作 md进行解析,导致一些 组件无法正常渲染
Versions
Steps to reproduce
What is Expected?
期望能像 1.x版本一样, 对tsx进行解析。或者能够给一个比较良好的升级方案。
What is actually happening?
The text was updated successfully, but these errors were encountered: