Formatting in .md
-files?
#4388
-
I'm really struggling with getting formatting in Should it work straight out of the box with a specific VSCode extension and VSCode setting turned on? I'm hoping I'm missing something that's been staring me in the face. Currently I use Prettier to format my Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Use prettier + markdownlint extensions. Don't use volar's formatting. They should work for most things, but they still don't format html/vue code inside markdown files (prettier/prettier#8480). I had written a patch to support vue in markdown but that only worked with prettier 2. I'm not much familiar with writing prettier plugins myself, but someone having experience in that field might create a prettier plugin for html/vue in markdown. |
Beta Was this translation helpful? Give feedback.
Use prettier + markdownlint extensions. Don't use volar's formatting. They should work for most things, but they still don't format html/vue code inside markdown files (prettier/prettier#8480). I had written a patch to support vue in markdown but that only worked with prettier 2. I'm not much familiar with writing prettier plugins myself, but someone having experience in that field might create a prettier plugin for html/vue in markdown.