Processing Markdown frontmatter

Topics: Markdown processing

Processing Markdown frontmatter is efficiently done using the command line tool yq.

Removing tags

find . -name '*.md' -print \
  -exec yq -i --front-matter="process" \
  'del(.["tags"][] | select(. == "obsolete"))' {} \;

Bookmarks

Questions