piersdeseilligny / betterfountain

A screenwriting app integrated into visual studio code
https://marketplace.visualstudio.com/items?itemName=piersdeseilligny.betterfountain
MIT License
357 stars 54 forks source link

Automatically link URLs (or MD style links) in HTML export #157

Open alystair opened 2 years ago

alystair commented 2 years ago

I like to attach references and noticed that URLs aren't linked appropriately. Is this something that could be implemented? It's already baked into many MD renderers.

piersdeseilligny commented 2 years ago

I know, I really wanted to implement this but unfortunately it's painfully difficult to get this working correctly in the rendered PDF... Links work as they should in the title page, because it works in a slightly different way, but the current architecture of the PDF Renderer just isn't able to work with links, without getting very hacky and messy.

My long-term aim for BetterFountain is to use Chromium's HTML to PDF functionality, or something similar, which doesn't involve manually specifying text boxes and positioning them in a PDF, and this would also allow links to be correctly included, along with a ton of other functionality (specifically font substitution for non-latin fonts). However I'm unfortunately unable to give an even vague release timeframe for this....

I'il keep this issue open in order to keep track of it and let you know of any updates :)