type detection broken in markdown file (.md)
See original GitHub issuesince markdown is supported in prettier there seems to be a problem in the type detection
when in setting.json:
"editor.formatOnSave": true
it seems that prettier is formatting the .md like typescript or javascript.
the three backticks are moved up inside the source code, which is an indicator for me, that prettier thinks its a javascript file.
my workaround at the moment is
"[markdown]": {
"editor.formatOnSave": false
}
but i really would like to use that feature for markdowns.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Broken Markdown link detection should also work for internal ...
One fantastic feature of Docusaurus 2 is that it warns me if I have a broken link in one of my Markdown files:...
Read more >Check links in your Markdown documents - Gleb Bahmutov
Check links in your Markdown documents. How to never have a wrong link in your README and other Markdown files.
Read more >GitHub markdown not rendering and git detecting changes ...
Very frequently when I type in headings such as # heading or ## sub-heading , the heading does not render correctly. Here is...
Read more >Markdown links to .md file open the source instead of ... - GitLab
Summary. When inserting a link to a .md file, for example link, clicking on it will open the source code, instead of opening...
Read more >Markdown editing with Visual Studio Code
Markdown preview. VS Code supports Markdown files out of the box. You just start writing Markdown text, save the file with the .md...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Looks like this plugin is not working for current VSCode 1.19.1 + prettier-vscode 1.0 + prettier 1.9.2.
It seems that prettier is assuming .md files as JavaScript and throwing syntax errors in output. For e.g.:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.