mixu / markdown-styles

Markdown to static HTML generator and multiple CSS themes for Markdown
1.85k stars 250 forks source link

Relative URLs to other markdown files #8

Closed rgregg closed 9 years ago

rgregg commented 10 years ago

GitHub has [somewhat] recently started supporting relative URLs to other MD files. This is awesome on GitHub, but painful elsewhere because those links aren't usually fixed up in the converted HTML. It'd be awesome if there was a way for generate-md to support fixing up relative links to files in the input folder to the converted file in the output folder.

mixu commented 10 years ago

by fixing up, do you mean taking [foo](./foo.md) and converting it into [foo](./foo.html) (or the equivalent link) automatically? I'll take a look at it next time I'm doing work on generate-md.

rgregg commented 10 years ago

Exactly. For now I've just added a few SED actions to a build script that invokes generate-md to make the changes, but it'd be great if the code itself would resolve those links. Thanks for considering it!

mixu commented 9 years ago

Added in v3.1.4 - .md links are now converted to .html links. Thanks for filing this issue!