jxnblk / mdx-go

:zap: Lightning fast MDX-based dev server for progressive documentation

Home Page:https://mdx-go.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TOC links lead to .md domain instead of a sibling file

dimaqq opened this issue · comments

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...

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