Created
February 3, 2025 13:36
-
-
Save delorenj/aa288570fafdbd3dc673ffbbc92748ca to your computer and use it in GitHub Desktop.
Watches markdown files and runs them through markdown-cli when changes detected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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