TOC links lead to .md domain instead of a sibling file
dimaqq opened this issue · comments
Dima Tisnek commented
I have a doc
directory, with:
- blank
index.mdx
- some docs in
build.md
mdx-go
renders the default page as:
Project Documentation
TOC
<li href="//build.md">
build
I imagine that ./build.md
or simply build.md
was intended in the link target 🤔
Edit: actually, ./build
or build
is intended, because that renders markdown, while build.md
shows raw file...
Dima Tisnek commented
Ah! it turns out that was not generated by mdx-go
, but rather I had a README.md
that was automatically included into index.mdx
(why?)
And README.md
had a bunch of slugs like * [build](./build.md)
which mdx-go somehow changed into links //build.md