charmbracelet / glow

Render markdown on the CLI, with pizzazz! 💅🏻
MIT License
15.23k stars 327 forks source link

feature: render ~~strikethrough~~ #510

Open crides opened 1 year ago

crides commented 1 year ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Add strikethrough rendering with ~~strikethrough~~. Apparently on Discord it's ~~ but GFM speced it to be ~ or ~~

Describe alternatives you've considered N/A

Additional context N/A

bashbunni commented 10 months ago

Related: https://github.com/yuin/goldmark/blob/master/extension/ast/strikethrough.go looks like Terminal.app doesn't support strikethrough text

snoweuph commented 1 month ago
printf "\e[9m"
printf "Some Text"
printf "\e[m\n"

Works for me in bash, with:

so, it's doable to have strike-through text in a terminal