tajo / ladle

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

MDX anchor links do not work #553

Open atomrevival opened 3 months ago

atomrevival commented 3 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