henriklovhaug / md-tui

Markdown renderer in the terminal
GNU Affero General Public License v3.0
206 stars 13 forks source link

Link colors #156

Closed donovanglover closed 2 months ago

donovanglover commented 2 months ago

Currently link colors work when URLs are in the format [Example](https://example.com)

Would be great if links like <https://example.com> or even https://example.com had colors as well similar to glow.

orhun commented 2 months ago

Sounds like a straightforward feature to implement, would you be interested in contributing? 🐻

henriklovhaug commented 2 months ago

It would be preferable to catch URL as early as possible. I think defining the pattern in the pest file would be the option

orhun commented 2 months ago

I tried out some stuff: #157

But unfortunately I couldn't get it working. It is either not being parsed at all or being parsed as a LinkData.

I appreciate any guidance towards finishing the implementation!

henriklovhaug commented 2 months ago

Added comment for help in PR