guilhermeprokisch / see

A cute cat(1) for the terminal with advanced code viewing, Markdown rendering, 🌳 tree-sitter syntax highlighting, images view and more.
MIT License
204 stars 2 forks source link

Making it a lib and supporting rendering to HTML #66

Open Boscop opened 1 month ago

Boscop commented 1 month ago

In the Readme it says:

The primary goal of see (smd before v0.4.0) was to create a unified tool for viewing both CLI documentation in Markdown and code files, renderable in both the terminal and web browse

It would indeed be nice to be able to call this crate as a library from a Rust host to be able to render any files in HTML with syntax highlighting etc. Is it possible that you could factor out the common parts into a lib crate, so that it can be used by a Rust host for rendering to HTML? 😊

I'm asking because I have a use case where I want to do this, and it seems this crate is the closest approximation to do this, but it doesn't support rendering to HTML yet, even though the underlying inkjet crate does.

srid commented 1 month ago

Making it a lib alone would be useful to me, thus providing an alternative to https://github.com/Canop/termimad