Skip to content
/ mdwc Public

Word count utility for Markdown files with pandoc-style YAML block

License

Notifications You must be signed in to change notification settings

palday/mdwc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

mdwc

by Phillip Alday

Available through my mead tap for Homebrew and Linuxbrew

wc wrapper for pandoc MarkDown files with YAML block.

arguments:
  --title, -t            run wc on title line in initial YAML block
                         (note: will not work on multiline titles)

  --body,  -b            run wc on body (everything after initial YAML block)

  --field, -f            run wc on specified top-level YAML field
                         Note: this will extract multiline fields and can be
                         used to extract multliline titles. This method is
                         slower, which may be come apparant when applied to
                         large (numbers of) files.

  --key,   -k            synonym for --field. One of these may be removed
                         in the future

wc arguments supported: (see man wc for more details)
  --bytes, -c
  --chars, -m
  --words, -w
  --lines, -l
  --max-line-length, -L
  --files0-from

Default is wc on just the body (useful for situations with length limits such
as abstracts)

About

Word count utility for Markdown files with pandoc-style YAML block

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages