lampsitter / egui_commonmark

Markdown viewer for egui
Apache License 2.0
86 stars 19 forks source link

Show a tooltip containing the url of a link when hoverring it #68

Closed chianti-ga closed 5 hours ago

chianti-ga commented 6 hours ago

It would be useful to display a tooltip containing the URL when a user hovers over a link. This would enhance the user experience and security by providing more context on where a link points to without needing to click on it.

lampsitter commented 5 hours ago

It's an annoying egui default. It can be enabled with:

ui.style_mut().url_in_tooltip = true;

It's written in the docs

chianti-ga commented 5 hours ago

It's an annoying egui default. It can be enabled with:

ui.style_mut().url_in_tooltip = true;

It's written in the docs

Thank you for pointing that out! I’ll enable ui.style_mut().url_in_tooltip as suggested. I hadn’t realized this was already documented.

lampsitter commented 5 hours ago

I'll add it to the README too so that it is easier to discover.