**
. _
.markdown.preview.scrollPreviewWithEditor
and markdown.preview.scrollEditorWithPreview
settings.'markdown.styles': []
setting. This lists URLs for style sheets to load in the Markdown preview. These stylesheets can either be https
URLs, or relative paths to local files in the current workspace.Style.css
at the root of your current workspace, use File > Preferences > Settings to bring up the workspace settings.json
file and make this update:settings.json
:https
.http
images.Strict
security enabled unless you have a very good reason to change it AND you trust all markdown files in the workspace.http
.http
..md
files into .html
files. Let's walk through compiling a simple Markdown document.sample.md
file.tasks.json
. To do this, run Terminal > Configure Tasks and click Create tasks.json file from templates. VS Code then presents a list of possible tasks.json
templates to choose from. Select Others since we want to run an external command.tasks.json
file in your workspace .vscode
folder with the following content:tasks.json
file as well to help you along. Use ⌃Space (Windows, Linux Ctrl+Space) to see the available settings.sample.html
.tasks.json
file will then look like this:-g
switch) and locally:gulp -v
. You should see a version displayed for both the global (CLI) and local installations.sample.md
and tasks.json
under the .vscode
folder), and create gulpfile.js
at the root.gulp-markdown-it
.tasks.json
file or empty it only keeping the 'version': '2.0.0'
property. Now execute Run Task from the global Terminal menu. Observe that you are presented with a picker listing the tasks defined in the gulp file. Select gulp: default to start the task. We allow you to scan the output for compile problems. Since we only want to convert the Markdown file to HTML select Never scan the build output from the presented list. At this point, if you create and/or modify other Markdown files, you see the respective HTML files generated and/or changes reflected on save. You can also enable Auto Save to make things even more streamlined.tasks.json
file will then look like this: