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]: Anchor # for titles in <Steps> overlaps with the sequence number #1527

Open
i-richardwang opened this issue Oct 25, 2024 · 3 comments
Labels
🐞 bug Something isn't working mdx

Comments

@i-richardwang
Copy link

Version

System:
OS: macOS 15.0.1
CPU: (10) arm64 Apple M1 Pro
Memory: 213.81 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Browsers:
Chrome: 130.0.6723.58
npmPackages:
rspress: ^1.34.1 => 1.34.1

Details

Anchor # for titles in overlaps with the sequence number

Image

Reproduce link

None

Reproduce Steps

import { Steps } from '@theme';

<Steps>

### Title1

1. node1
2. node2
3. node3

</Steps>
@i-richardwang i-richardwang added the 🐞 bug Something isn't working label Oct 25, 2024
@Timeless0911
Copy link
Contributor

Seems can not be reproduced in website https://rspress.dev/guide/default-theme/components#steps

@JounQin
Copy link
Contributor

JounQin commented Jan 10, 2025

Seems can not be reproduced in website rspress.dev/guide/default-theme/components#steps

Image

https://codesandbox.io/p/devbox/ecstatic-curie-nvw927?file=%2Fdocs%2Fhello.mdx%3A6%2C13

This can be reproduced very easily.

@Timeless0911
Copy link
Contributor

Rspress set markdown.mdxRs: true by default and mdx-rs will not add header anchor for headings in components which may be not aligned with mdxjs.

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

No branches or pull requests

3 participants