From 319745e05e4fb518a30336a332ce89b1a45fe110 Mon Sep 17 00:00:00 2001 From: yctct Date: Wed, 12 Nov 2025 14:35:56 +0100 Subject: Add files --- README.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 README.txt (limited to 'README.txt') 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 -- cgit v1.2.3