wofr06 / lesspipe

lesspipe - display more with less
GNU General Public License v2.0
484 stars 51 forks source link

Colorizing links with `mdcat` broken #119

Closed treyharris closed 1 year ago

treyharris commented 1 year ago

Given the input file TEST.md:

# Testing `lspipe` and `mdcat`

Things like _italics_ and **bold** work great.

## As do heads
### And subheads

But strangely [links](https://example.com) do not, in
- [any](https://google.com)
- [context](https://github.com/wofr06/lesspipe/)
- but raw URL's like https://github.com/swsnr/mdcat work.

A [local](link) link doesn't work better either.

I get the following results (lesspipe.sh above and raw mdcat below): IMG_2704

Note that I’m using the same version of mdcat (https://github.com/swsnr/mdcat, previously https://github.com/lunaryorn/mdcat) you mentioned using in other issues.

This happens regardless of ssh or mosh, tmux or non-tmux. (I don’t have GUI access so I’m not sure how it would look there.) My TERM is xterm-256color or screen-256color, on Ubuntu 20 LTS, on the newest release of mdcat.

Thanks—lesspipe.sh has been indispensible to me!

wofr06 commented 1 year ago

With the given input the misbehaviour of lesspipe as documented above could not be reproduced.