walle / gimli

Utility for converting markup files to pdf files
https://github.com/walle/gimli
MIT License
538 stars 44 forks source link

Auto-link URL in PDF output #35

Closed rngadam closed 11 years ago

rngadam commented 11 years ago

First thanks, gimli is great.

One feature I'm missing is the auto-linking of plain URL in the source document. If I put a URL in Markdown without any special markup, Github will still render it as a clickable link. I think it would be nice if the same was reflected in the PDF, maybe as an option.

walle commented 11 years ago

That's a great suggestion. I will have to look into the code that does the conversion if there's any options to do this. Otherwise I'll have to write it in gimli.

Regards, Fredrik Wallgren

walle commented 11 years ago

There doesn't seem to be any configuration for this, because gimli uses github/markup so we can't pass along a configuration for redcarpet etc.

In markdown you can use < > to create links. https://github.com

<https://github.com>

To fix this in gimli I would need more time than I have right now. Sorry.

walle commented 11 years ago

I changed my mind :)

I have a solution for this in https://github.com/walle/gimli/tree/fix_autolinks_and_tables_in_markdown and plan to merge it in the 0.5.0 release.