Generate snippets for VS Code from templates.
It deals with escaping special characters and line breaks.
Create your templates in templates/ as prefix.md.
You can use VS Code placeholders in the templates.
Run python3 generate-snippets.py.
The snippets are generated in the current workspace. You can copy the file to your user profile if you prefer.