Open yayxs opened 7 months ago
maybe you should use another name in [https://zh.javascript.info/arraybuffer-binary-arrays], do not use a link in []
@Timeless0911
是的,我也有注意到。
当我在mdx
中写入这样的内容:
# ArrayBuffer
- [not link](https://zh.javascript.info/arraybuffer-binary-arrays)
渲染出来的 a
就是没有嵌套的,请问这个是个bug吗?页面中链接显示的文本有的时候需要是链接
Yes, I noticed that too.
When I write something like this in mdx
:
#ArrayBuffer
- [not link](https://zh.javascript.info/arraybuffer-binary-arrays)
The rendered a
is not nested. Is this a bug? The text displayed as a link on the page sometimes needs to be a link
If there is a link in [], the logic of the code you posted seems to be entered twice, because the children
variable rendered is still a Link. This should be an issue with mdx-rs parsing, can you help take a look? @sanyuan0704
After mdx-rs compile:
<p>
<a href="https://example.com" target="_blank" rel="noopener noreferrer"
><a href="https://example.com" target="_blank" rel="noopener noreferrer"
>https://example.com</a
></a
>
</p>
版本信息
问题详情
在
mdx
文件中,a 标签的渲染似乎出现了嵌套问题 我的mdx内容如下:can see:
看起来是这段代码: packages/theme-default/src/components/Link/index.tsx
复现链接
https://github.com/yayxs/computer-organization-learn/blob/main/docs/arraybuffer/start/introduction.mdx
复现步骤