Skip to content

Instantly share code, notes, and snippets.

@delorenj
Created February 3, 2025 13:36
Show Gist options
  • Save delorenj/aa288570fafdbd3dc673ffbbc92748ca to your computer and use it in GitHub Desktop.
Save delorenj/aa288570fafdbd3dc673ffbbc92748ca to your computer and use it in GitHub Desktop.
Watches markdown files and runs them through markdown-cli when changes detected
{
"version": "2.0.0",
"tasks": [
{
"label": "Watch Markdown Files",
"type": "shell",
"command": "watchman-make",
"args": [
"-p",
"**/*.md",
"--run",
"markdown-cli ${file} > ${fileDirname}/.${fileBasenameNoExt}.compiled.md"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"reveal": "silent",
"panel": "dedicated"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment