mdx-rs
mdx-rs copied to clipboard
Rust MDX compilation binding for Rspress
```mdx [https://example.com](https://example.com) ``` see https://github.com/web-infra-dev/rspress/issues/875 After mdx-rs compile: https://example.com
 same issue when mdxRs is false.
js 版本正常的 https://github.com/web-infra-dev/rspress/blob/main/packages/plugin-container-syntax/src/remarkPlugin.ts#L76-L77 rs实现应该使用 `` ``而不是``
Is there a way to pass custom components to the compile function to generated html includes the custom component?
By default, jsx will be preserved, which is consistent with the existing behavior, but jsx can be compiled through the option `jsx: false` #16
https://github.com/web-infra-dev/mdx-rs/blob/d5f454cd636a24c7739e7fab97d866bb0f2d1b94/crates/mdx_rs/src/lib.rs#L132-L133 But there is `jsx` field in the `Options` struct: https://github.com/web-infra-dev/mdx-rs/blob/d5f454cd636a24c7739e7fab97d866bb0f2d1b94/crates/mdx_rs/src/configuration.rs#L184-L188
https://github.com/web-infra-dev/mdx-rs/blob/d5f454cd636a24c7739e7fab97d866bb0f2d1b94/crates/plugin_normalize_link/src/lib.rs#L66  原文:  
## Reproduction ```js import { compile } from './index.js'; const { toc } = await compile({ value: `# Title ## Foo {#my-anchor} ## Bar {Math.PI} `, filepath: 'README.mdx', development: true,...
page: https://rspress.dev/zh/guide/default-theme/components.html repo: https://github.com/web-infra-dev/rspress/blob/main/packages/document/docs/en/guide/default-theme/components.mdx
# Summary more friendly error debugging # Related links https://github.com/web-infra-dev/rspress/issues/1216 https://github.com/web-infra-dev/rspack/blob/940dcb532a7506fe46a2a8e07a36f2b4139c2677/crates/node_binding/src/panic.rs#L3 https://github.com/web-infra-dev/rspress/issues/1307