lowdown icon indicating copy to clipboard operation
lowdown copied to clipboard

Add Pikchr support

Open data-man opened this issue 3 years ago • 3 comments

data-man avatar Mar 19 '22 01:03 data-man

The simple sample:

```pikchr
circle "lowdown"  color green
box rad 10px "+" bold
cylinder "pikchr" color blue
box "==" color 654321
oval "super cool!" color red
```

Rendered as: aa

data-man avatar Mar 19 '22 02:03 data-man

Dr Hipp is brilliant, so I like the premise of this, but the biggest issue in getting this merged is that only -thtml will have output. It should have terminal (for -tterm, -tgemini), HTML, LaTeX, and ideally PIC as well, or else it'll be just another corner case of something supported for HTML.

kristapsdz avatar Mar 19 '22 16:03 kristapsdz

the biggest issue in getting this merged is that only -thtml will have output. It should have terminal

Of course, because pikchr only outputs SVG (at least for now). Why would SVG be useful in terminals?

But if you don't mind adding dependencies, I can add using ImageMagick to lowdown. Then lowdown will be able to show images by converting them to sixels.

I know some Markdown viewers that support displaying images in a terminal, but they are written in Rust, and I' m not Rust friend. :)

data-man avatar Mar 20 '22 03:03 data-man