Hacker News new | ask | show | jobs
by encryptluks2 1608 days ago
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.
1 comments

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/