I have a GitHub repo with Markdown docs, currently linked among them using the filename.md format. I'd like to render the docs using Hugo, and I also have the requirement to keep them browsable via GitHub.
How can I write the links so that they work both on GitHub and in Hugo?
The first requirement means that they have to be in the filename.md format (I tried in a test repo to use just filename or filename.html to point to filename.md files, but only got 404s).
If I understand correctly, permalinks or shortcodes in Hugo are not useful, because they're only used in templates and not in Markdown docs.
There would have to be some way to intercept link generation during the Markdown parsing and rendering, to convert the filename.md links into filename.html ones (given uglyurls = true). Any way to do that?
Or any other way to satisfy both requirements? Thanks.