c-cube / printbox

print nested boxes, lists, arrays, tables in several formats
https://c-cube.github.io/printbox/
BSD 2-Clause "Simplified" License
75 stars 9 forks source link

Markdown backend: complete implementation #35

Closed lukstafi closed 5 months ago

lukstafi commented 5 months ago

Currently, multiline preformatted content as separate inline code markers. Will consider using code blocks...

I'll also test links, complex combinations and big output sizes.

lukstafi commented 5 months ago

First experiments with ppx_minidebug look very promising, no issues! Sill need to:

lukstafi commented 5 months ago

Let me know if you'd like to have printbox-md try approximately exporting special cases of tables in a more Markdown-friendly format. Meaning:

So, I noticed I get a lot of fluff because I've used vlist x in one place, and I can easily use tree empty x instead -- but maybe we can do that inside printbox-md itself.

lukstafi commented 5 months ago

I checked that GitHub's Markdown rendering is capped at below 2MB. VSCode Markdown rendering works with bigger files, but there's an annoying waiting period (in that there's no reaction, a progress indicator would make it more bearable) that's even longer than with GitHub.

lukstafi commented 5 months ago
  • using lists for single-column tables (vlist)

I'll implement this simple case, since tree empty x causes an extra fold.

lukstafi commented 5 months ago

The biggest bummer is that GitHub Markdown rendering, as far as I see, just entirely rejects using styles provided by <div style=...> or <span style=...> elements. This is not expected! (Other renderers, and CommonMark, render styles as normal HTML.) Let's do this: I keep a personal branch with the full scope so I feel less bad about it, and remove the Stylized functionality from the PR.