glow icon indicating copy to clipboard operation
glow copied to clipboard

glow not rendering heading levels other than top-level

Open Halfwalker opened this issue 5 months ago • 6 comments

Describe the bug glow does not seem to render headings other than top-level # Heading 1. Other levels like ## Heading 2 render in a color, but also show the ##

Setup

  • OS : Ubuntu 20.04 and 22.04
  • Shell : zsh and bash
  • Terminal Emulator : alacritty, gnome-terminal, xterm (without Hack Nerd Font)
  • Terminal Multiplexer : tmux and no tmux
  • Locale : en_US.UTF-8

Source Code Simple test.md

# Heading 1

## Heading 2

### Heading 3

#### Heading 4

* list item
* another list item
    * sub-list item
    * and another

Normal text
*single asterisk*
**double asterisk**
_underscore_
__double underscore__

Expected behavior The sample test.md should render appropriately. # Heading 1 renders as expected, with coloring/bold/etc. ## Heading 2 and the others only render in blue and show the heading level hashes

This may well be an unintended and unexpected confluence of factors like font, terminal etc.

Screenshots Screenshot from 2024-09-06 10-17-21

Additional context Using the "Hack Nerd Font" for alacritty and gnome-terminal

Halfwalker avatar Sep 06 '24 16:09 Halfwalker