I'm on a lookout for a #Python library that would allow me to put markdown in an...
Juhis @hamatti@mastodon.world
I'm on a lookout for a #Python library that would allow me to put markdown in and get out a number of "visible characters" in the output.
What I mean is that a *italic* would count as 6 characters and a [link](/to/url) would count as 4.
So not the amount of characters in MD or in rendered HTML but what a user would see or copy-paste in plain text from a rendered HTML page essentially.
Before I go down the rabbit hole and build my own, does anyone know of such library?