charmbracelet/glamour

Emphasis as `_Alcachofa_` not rendered correctly with italics when used inside `tmux`

gbraad opened this issue · 3 comments

The following:

Alcachofa

is rendered as

Screenshot from 2023-04-05 12-12-15

but this is different from the example screenshot shown:

It gets rendered as a block; inversed from expected and no italics applied.

This should have used the emph definition, right?

This seems to happen when glow is called within tmux

Within tmux:
Screenshot from 2023-04-05 17-05-17

A plain gnome-terminal:
Screenshot from 2023-04-05 17-05-24

this is probably related to your tmux config...

I do have this on mine:

set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
setenv -g COLORTERM truecolor
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'  # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'  # underscore colors - needs tmux-3.0

and it works as expected...

closing as probably related to tmux configs