Skip to content

Formatting in .md-files? #4388

Answered by brc-dd
felix-bohlin asked this question in Q&A
Nov 27, 2024 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@brc-dd
Comment options

@felix-bohlin
Comment options

@brc-dd
Comment options

@felix-bohlin
Comment options

@brc-dd
Comment options

Answer selected by felix-bohlin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants