diff options
| author | yctct <yctct@yctct.com> | 2025-11-12 14:35:56 +0100 |
|---|---|---|
| committer | yctct <yctct@yctct.com> | 2025-11-12 14:35:56 +0100 |
| commit | 319745e05e4fb518a30336a332ce89b1a45fe110 (patch) | |
| tree | 18c9697283442bac29442b7ede66357f11488b2b /README.txt | |
Add files
Diffstat (limited to 'README.txt')
| -rw-r--r-- | README.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..8b671e1 --- /dev/null +++ b/README.txt @@ -0,0 +1,42 @@ +This is a script copied from Pandoc's repository. + +Description +---------- + +From Pandoc's documentation: + +> This filter counts the words in the body of a document (omitting metadata +> like titles and abstracts), including words in code. It should be more +> accurate than wc -w run directly on a Markdown document, since the latter +> will count markup characters, like the # in front of an ATX header, or tags +> in HTML documents, as words. + + +Setup +---- + + $ cd ~/bin/ # cd to ~/bin/ + $ wget https://git.yctct.com/repositories/wcm.lua # download the script + $ chmod +x wcm.lua # make the script executable + +Make sure ~/bin/ is on $PATH. + +Usage +----- + + $ pandoc --lua-filter=$HOME/bin/wcm.lua file.md + +Source +------ + +Pandoc's repository. + +Author +----- + +jgm + +License +------- + +MIT License |
