Skip to content

Conversation

@benjajaja
Copy link
Contributor

@Canop with this I'm done, and would love to get a release on crates.io ❤️

@Canop
Copy link
Owner

Canop commented Jan 25, 2025

Ok.

BTW, I get very few feedback from termimad users, so it mostly fits my very special needs. So I'd welcome info on how you're using it and how it could be improved (for example on the chat at https://miaou.dystroy.org/3768?Rust)

@Canop Canop merged commit 498398e into Canop:main Jan 25, 2025
2 checks passed
@Canop
Copy link
Owner

Canop commented Jan 25, 2025

I published 0.31.2

@benjajaja
Copy link
Contributor Author

benjajaja commented Jan 25, 2025

Thank you! Yes, I'd love to share. I made a wrapper lib that produces ratatui Line widgets instead of raw terminal output.

I've found that using markdown libs that produce AST it doesn't make sense to attempt to re-create the input just with some styling. That works for HTML or other representations, but not so much for a terminal (or any monospace display).

Termimad seems just right, but it's streamlined to write to a buffer (stdout) with crossterm styles. I need to make it work in a TUI app with ratatui, producing some kind of Line widget with ratatui styles. I had to hijack some parts of MadSkin to recreate the output but as ratatui widgets.

I was considering asking if it would make sense to refactor termimad to write to some kind of Output or Display trait, instead of fmt::Formatter, but I don't think termimad or most of it's users would benefit from that, and then dealing with traits makes everything more complicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants