-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Underline links? #10
Comments
Currently no, but it should be possible to do. We don't have that many resources for new features, but I'll keep that issue in the backlog. Pull requests are very welcome. |
Quick workaround: # Add <u> and <color> inside links to style them as HTML links
your_html.gsub!(/<a ([^>]*)>(.*?)<\/a>/m, "<a \\1><u><color rgb=\"0000FF\">\\2</color></u></a>") Requires Prawn-Markup 3.0.6 or greater! @codez Can you outline how you'd see this implemented? I could try sending a PR. As I see it, this would mean adding a |
Yes, I think that's a good approach. Instead of calling start_u and start_color, I would directly insert the respective tags into the text in |
Implemented by #53 |
I've moved on from the PDF-heavy project where I needed this a long time ago, but huge thanks to everyone who worked on this feature! 🙏 👍 |
Is there a way to make
<a>
tags underlined and blue? If not, it would be nice if this was available to do inmarkup_option
Thanks!
The text was updated successfully, but these errors were encountered: