โฌ‡ Markdown Word Count

April 15, 2024 ยท View on GitHub

Python package

A word counter for raw Markdown files, excluding punctuation, footnotes, and special Markdown or HTML tag syntax.

๐Ÿ’ป Installation

You will need...

  • ๐Ÿ Python 3
  • ๐Ÿ‘ PIP3 or a clone of this repo.

โ–ถ Usage

Through PIP

The easiest way is to run:

pip install markdown-word-count

Then, you'll be able to analyze any file by passing its name (relative path) to the mwc script:

mwc yourfile.md

You can also pass in multiple files or a blob if your shell supports it. This allows for checking all files in a folder, for example.

mwc text1.md text2.md
mwc test/*.md

Manually

If you want to clone the repo and run the Python script manually, run:

python mwc/cli.py myfile.md

If this doesn't work, try python3 instead of python.

โ› Development

Run this to execute all tests:

python -m unittest discover

๐Ÿ’ฌ Ports to Other Programming Languages