vb64 / markdown-pdf

Markdown to pdf renderer
MIT License
32 stars 2 forks source link

Hyperlinks are not fully converted #26

Open jirku opened 1 month ago

jirku commented 1 month ago

So when converting markdown to pdf like this """ze dne 2. 4. 2019. Dostupné z: <https://uohs.gov.cz/cs/verejne-zakazky/sbirky-rozhodnuti/detail-15999.html>""" the full link is shown and marked as hyperlink correctly but only the first line is taken as the link. The part on the second line is omitted. image

vb64 commented 1 month ago

The pdf contains your html link as text, not as a hyperlink.

As a hyperlink, it is recognized and interpreted by the app displaying the pdf file (browser, for example). This app may not correctly handle the new line character into html link body.

If you absolutely need a clickable link in pdf format, you can use landscape orientation of the page.

pdf.add_section(Section("ze dne 2. 4. 2019. Dostupn├й z: <https://uohs.gov.cz/cs/verejne-zakazky/sbirky-rozhodnuti/detail-15999.html>", paper_size="A4-L"))