Skip to content
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

Option to ignore reference links #418

Open
dawsdep opened this issue Nov 17, 2022 · 2 comments
Open

Option to ignore reference links #418

dawsdep opened this issue Nov 17, 2022 · 2 comments

Comments

@dawsdep
Copy link

dawsdep commented Nov 17, 2022

Could there be an option to ignore reference links? Currently, the full path is rendered in place of the reference link.

Reference links are often used to make documents more readable by removing long links from being inline with text content. When reference links (which are quite readable in a markdown file) are rendered into something less readable it feels like the renderer made things worse. I'd really like a way to preserve this readability improvement while using glow to render my markdown files.

I love how glow is a minimal amount of visual rendering that improves the readability of markdown documents and I want to thank you all for working on it!

@deicon
Copy link
Contributor

deicon commented Nov 18, 2022

I was wondering as well, if I like an option at least to switch off the full path for those links.
As the main reason for me to use glow for my markdown notes is to quickly read the content and scan through it. Not actually using or verifying any links.

I would suggest a switch to hide the full path and display link texts only. When hidden, an extra key toggle might display the full link again. As rendering of text is done in glamour, this needs to be enhanced first. charmbracelet/glamour#204

@gvolpe
Copy link

gvolpe commented Mar 31, 2023

This would be a great addition 👍🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants