Closed jaydenseric closed 2 years ago
Is it to do with this code missing a few entries?
There are actually a lot of other code block labels like css
that are not supported by this plugin yet, but supported by normal Prettier in markdown.
Yes that is here.
Is there a reason Prettier can't be used to format the whole descriptions as if they are markdown, and let Prettier handle the formatting of the bullet lists, code blocks etc. itself however it normally does?
We tested before but did not get the right result.
@hosseinmd thanks for the speedy fixes, you're doing a champion job 🙌
In
demo.mjs
, if you have this content:After formatting the content formats to this:
As you can see, the JSDoc description markdown code block labeled
js
gets formatted but the one labeledjsx
doesn’t.If you try that same markdown in a
demo.md
file, after formatting both thejs
andjsx
labeled code blocks are correctly formatted by Prettier, proving that this Prettier plugin is somehow not recognizing all the labels that Prettier can normally format.