Scripts for Managing Markdown Notes

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

Related