rnuske / komaletter

R package for comfortable writing of beautiful PDF letters in Markdown.
https://rnuske.github.io/komaletter
86 stars 21 forks source link

hyperlinked text print the url as a footnote #12

Closed Hanomics closed 4 years ago

Hanomics commented 4 years ago

Thank you for developing this interesting package. Is there any way to produce a hyperlinked text without printing the URL as a footnote? I want to produce a clickable text. Here is a snapshot of the following code line produces: [linked text here](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)

hyperlink

rnuske commented 4 years ago

I'm very sorry I haven't seen your question for so long. Somehow I have misconfigured my github account and it does not notify me about new issues.

There is a currently undocumented YAML parameter inline-links which causes the links to be hotlinks in the PDF document. But the link is not styled differently at the moment.

So technically just set inline-links: true in your YAML header.

I will document that parameter on the help page of the R Function and think about styling of links. What do you think about just bold text for the "linked text" or maybe a monospace font?

rnuske commented 4 years ago

@Hanomics I added documentation, some styling and an example in vignette letter_example2.Rmd (63eb616). Please test the github version and let me know what you think about the styling.

Hanomics commented 4 years ago

Brilliant! Thank you so much for this - very much appreciated.