Breaking news!
I just learned about a brand new library for wrapping Markdown text: runwrap. It uses the pulldown_cmark crate for parsing and Textwrap for, well, wrapping. It might be just what you need!
1 Like