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]: Headings not support HTML character entities or escape characers #320

Closed
recallwei opened this issue Nov 5, 2023 · 1 comment · Fixed by web-infra-dev/mdx-rs#14
Assignees
Labels
🐞 bug Something isn't working

Comments

@recallwei
Copy link
Contributor

Version

System:
    OS: macOS 14.0
    CPU: (10) arm64 Apple M2 Pro
    Memory: 79.34 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 118.0.5993.117
    Safari: 17.0
  npmPackages:
    rspress: ^1.5.0 => 1.5.0

Details

Headings and TOC does not support HTML character entities and escape characters.

What I expect to be:

User('sub')

But got:

image
image

Reproduce link

https://codesandbox.io/p/sandbox/awesome-sunset-fmx92l?file=%2Fdocs%2Foverview%2Findex.md%3A9%2C1

Reproduce Steps

```md
# 概览

## @User(\'abc\')

\'  
'

## @User('abc')
```
@10Derozan
Copy link
Contributor

You can unable this config to avoid this error.
I'll fix it at web-infra-dev/mdx-rs#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants