pandoc -t gfm --atx-headers --reference-location=block --toc -s -o filename-new.md filename.md
- Added as snippet to textexpander with fillin for filename
- saves in same directory
- uses github markdown syntax
- on every save of markdown file, a new file is created that is compiled into linted version.
- install pandoc
- set up so task-lists compile properly with lua filter
- create ~/.pandoc/filters directory
- put filters from https://github.com/pandoc/lua-filters in that folder
- add the following to vscode settings configuration:
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.md$",
"cmd": "pandoc -t markdown --atx-headers --lua-filter=task-list.lua --reference-location=block --toc -s -o ${fileDirname}/${fileBasenameNoExt}-new.md ${fileDirname}/${fileBasenameNoExt}.md"
}
]
}
I don't think this is linting so much as having a canonical form...