Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

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

Open
dimaqq opened this issue Apr 30, 2020 · 1 comment
Open

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

dimaqq opened this issue Apr 30, 2020 · 1 comment

Comments

@dimaqq
Copy link

dimaqq commented Apr 30, 2020

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

@dimaqq
Copy link
Author

dimaqq commented Apr 30, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant