Closed StingyJack closed 5 years ago
I know this is and old question, but it might help someone else.
I solved it in my ejs template by just replacing <%- yield %>
for <%- yield.replace(/\.md/g,'.html') %>
. I know it's an ugly hack as it might collide with non link texts....fine tunning the regexp or using a more specific replacement might help.
... or to have harp correct the hyperlinks that may be in a document if it has to rewrite them?
The problem is that it currently harpjs breaks my links. If I have these two markdown files
file1.md
file2.md
Harp converts the files to be accessible at server/site/file1 and server/site/file2, but the link in file1 is still pointed at "file2.md".
I think the renaming is intentional, but I would have expected it to fix the linkages also. I would like to avoid having to author in the dark or constantly fixup links. Is there a way to make this work?