tajo / ladle

🥄 Develop, test and document your React story components faster.
https://www.ladle.dev
MIT License
2.63k stars 93 forks source link

MDX anchor links do not work #553

Open atomrevival opened 7 months ago

atomrevival commented 7 months ago

Describe the bug

When using on-page anchor tags to refer to a different section in the markdown, the link does not work.

Reproduction

In an MDX file, write an anchor link to a heading element

## Table of contents

- [Meaning of life](#meaning-of-life)

Long text here...

## Meaning of life

Clicking on the link should lead me to this section

The link tag should redirect the user to the heading "Meaning of life". This works in markdown, but not in MDX.

Environment