Word counter that ignores Markdown
Read OriginalThis article presents a Python-based word counter tool designed to count words in Markdown files while ignoring Markdown syntax. The author explains their love for regular expressions and provides a script that uses Typer for CLI and Rich for output formatting. The tool strips code blocks, inline code, links, images, headings, lists, bold/italic, strikethrough, blockquotes, tables, horizontal rules, HTML comments, and tags. It can process single files or directories, with options to keep Markdown or show verbose output. The article is a technical tutorial/guide for developers working with Markdown and Python.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet