Hacker News new | ask | show | jobs
by friend-monoid 1610 days ago

    # Arch Linux (btw)
    yay -S glow
Heh, nice take on the whole "I use Arch btw" meme.

This is really cool.

1 comments

What I don't understand is with the recent adaptation of GPU-accelerated terminals, why not create something that actually renders Markdown like you'd expect in the browser, but in the terminal? It would have to be significantly faster than the bloat of a typical browser, but just with limited features... like no JS engine.
What about 'glow' and 'glamour' components of the charm project? What is their difference from what you propose?

Aside: I use glow to display help for special keybindings mode on sway.

Those are cool but they are still using just ANSI color codes and what not. I think it is great but not ideal or optimized than if terminals would implement a native markdown or markup renderer.
Wait, how would that even work? Do you want something like SIXL support but for markdown? Encode your markdown doc in an unholy escape sequence and throw it at the terminal?
It would work by the terminal API detecting file type and automatically rendering the markdown. Sort of like this:

https://github.com/alacritty/alacritty/blob/master/extra/ala...

Allowing for different sized headers and what not.

what is SIXL? when googling I can only find some random ETF that I don't think you're talking about.
It's called "Sixel", and it's a way to print graphics in the terminal:

https://en.wikipedia.org/wiki/Sixel

I think the parent refers to sixel: https://saitoha.github.io/libsixel/