Scripts for Managing Markdown Notes
Useful Links
- davidtimmons/zettelcorn - CLI utilities for managing your Zettelkasten knowledge base. Includes utilities to inject IDs and tags into frontmatter.
- Overview of Scripts for Zettelkasten - an overview of scripts that complement the operations of a Zettelkasten.
- Regex for markdown editing and manuscript clean-up (github.com)
RegEx
Converting tags from list to inline:
# before
tags:
- tag1
- tag2
# after
tags: [tag1,tag2]
This should match single tags
(?::\n\s{2,4}-\s)(\w+)(?:\n)(?!\s)
and replace with:
: [$1]\n