A Python CLI tool that counts words in Markdown files by stripping Markdown syntax using regular expressions before counting. The script uses typer and rich for the CLI interface, supports single files or directories, and provides verbose stats including word count, lines, characters, sentences, average word length, and estimated reading time. The author shares their love of regular expressions as the motivation for building this instead of using a Markdown rendering library.

5m read timeFrom daniel.feldroy.com
Post cover image

Sort: