Skip to content

Commit

Permalink
Hook up --term-no-rellinks.
Browse files Browse the repository at this point in the history
Fixes #105
  • Loading branch information
kristapsdz committed Dec 22, 2024
1 parent da4986e commit 5999027
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ main(int argc, char *argv[])
{ "term-ansi", no_argument, &rfl, LOWDOWN_TERM_NOANSI },
{ "term-no-colour", no_argument, &afl, LOWDOWN_TERM_NOCOLOUR },
{ "term-colour", no_argument, &rfl, LOWDOWN_TERM_NOCOLOUR },
{ "term-no-rellinks", no_argument, &afl, LOWDOWN_TERM_NORELLINK },
{ "term-nolinks", no_argument, &afl, LOWDOWN_TERM_NOLINK },
{ "term-no-nolinks", no_argument, &rfl, LOWDOWN_TERM_NOLINK },
{ "term-shortlinks", no_argument, &afl, LOWDOWN_TERM_SHORTLINK },
Expand Down
8 changes: 7 additions & 1 deletion man/lowdown-diff.1
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,13 @@ Don't show URLs for images and links (autolinks are still shown).
.Pq Link content is still shown.
Overrides
.Fl -term-shortlinks
for images and links.
and
.Fl -term-no-rellinks .
.It Fl -term-no-rellinks
Don't show URLs for relative links.
.Pq Link content is still shown.
Overrides
.Fl -term-shortlinks .
.It Fl -term-shortlinks
Shorten URLs for images, links, and autolinks to only the domain name
and final path.
Expand Down
8 changes: 7 additions & 1 deletion man/lowdown.1
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,13 @@ Don't show URLs for images and links (autolinks are still shown).
.Pq Link content is still shown.
Overrides
.Fl -term-shortlinks
for images and links.
and
.Fl -term-no-rellinks .
.It Fl -term-no-rellinks
Don't show URLs for relative links.
.Pq Link content is still shown.
Overrides
.Fl -term-shortlinks .
.It Fl -term-shortlinks
Shorten URLs for images, links, and autolinks to only the domain name
and final path.
Expand Down

0 comments on commit 5999027

Please sign in to comment.