kordamp / markdown-gradle-plugin

Markdown/HTML plugin for gradle
Apache License 2.0
71 stars 51 forks source link

Replace all occurrences of '.md' and '.markdown' with '.html' before generating the html #7

Closed Flowdalic closed 9 years ago

Flowdalic commented 10 years ago

Would it be possible that markdown-gradle-plugin optionally replaces all occurrences of '.md' and '.markdown' with '.html' before generating the html?

I'm in the process of migrating my project documentation from html to simple markdown files. Right now the links between those files are still targeting .html. This makes those links work in the exported html version that I place on a web server, but does not work when viewing the markdown files on e.g. github. The solution would be to have the links point to .md targets, which are transformed to .html targets while transforming the markdown to html. Although an solution that is integrated in the markdown transformator would be preferable, I think that this would already solve my problem!

Flowdalic commented 10 years ago

It seems that this could be done in the markdown transformator pegdown: http://www.decodified.com/pegdown/api/org/pegdown/LinkRenderer.html

Flowdalic commented 10 years ago

Ping

I usually don't bug developers about a certain feature. But in this case, I really would want to have it (and I think it should be easy to implement by modfing the LinkRenderer). :)

aalmiray commented 10 years ago

Sorry. Been out on holidays and other engagements that have had me AFAIK. We'll tackle this issue next week at the Basel Hackergarten. Stay tuned.

aalmiray commented 9 years ago

closed by #15

Flowdalic commented 9 years ago

Thanks so much! :-)

When please ping me when a release with this feature is available.

madmas commented 9 years ago

Ping :-) https://bintray.com/aalmiray/kordamp/markdown-gradle-plugin/1.0.0/view

Flowdalic commented 9 years ago

:tada:

thanks