Repository navigation
Show table links inline in markdown when hyperlinks are inline - #369
Merged
Merged
Conversation
With markdown_hyperlinks = "inline", links in prose were clickable labels with the URL hidden, but links in tables still got reference numbers and a URL list under the table. --man and the help dialog's doc page now pass glamour's WithInlineTableLinks in inline mode, so tables match the setting's description. Auto and off are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
markdown_hyperlinks = "inline", links in prose were clickable labels with the URL hidden, as the setting describes ("Underlined clickable text, URL hidden"). Links in tables didn't follow it: glamour still gave each one a reference number and printed a list of the URLs under the table.--manand the help dialog's doc page now pass glamour'sWithInlineTableLinksin inline mode, so table links are clickable labels too, with no reference numbers or URL list.autoandoffare unchanged, since printing destinations is the point of those modes. The option is already in the glamour version DS2 uses.This matches what glow's draft PR charmbracelet/glow#1095 (
--inline-links) does for its own inline mode.Confirmed live on a Linux test host: the watchtower doc's notification-services table (Discord, Email, Pushover…) renders its links as labels, with no reference numbers or URL list under it.