mdx-rs icon indicating copy to clipboard operation
mdx-rs copied to clipboard

Rust MDX compilation binding for Rspress

Results 18 mdx-rs issues
Sort by recently updated
recently updated
newest added

```mdx [https://example.com](https://example.com) ``` see https://github.com/web-infra-dev/rspress/issues/875 After mdx-rs compile: https://example.com

![image](https://github.com/web-infra-dev/mdx-rs/assets/50201324/01e48eea-f0fb-413c-8390-812a6aedfed0) 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 ![image](https://github.com/web-infra-dev/mdx-rs/assets/54507071/0135aa01-0da1-4be7-933e-f4b080a68f19) 原文: ![image](https://github.com/web-infra-dev/mdx-rs/assets/54507071/a4f35065-42d4-48db-9fa9-53a8e7aa44d7) ![image](https://github.com/web-infra-dev/mdx-rs/assets/54507071/c131c4c9-59f3-4d7d-8897-5ddf05df2753)

## 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