Description markdown code blocks labeled `jsx` don't get formatted
See original GitHub issueIn demo.mjs, if you have this content:
/**
* ```js
* let a
* ```
*
* ```jsx
* let a
* ```
*/
After formatting the content formats to this:
/**
* ```js
* let a;
* ```
*
* ```jsx
* let a
* ```
*/
As you can see, the JSDoc description markdown code block labeled js gets formatted but the one labeled jsx doesn’t.
If you try that same markdown in a demo.md file, after formatting both the js and jsx 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.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
React Markdown: A Thorough Guide With Markdown Examples
In this article, we'll explore what Markdown and react-markdown are, why to use react-markdown, and how to use them in a React application....
Read more >A guide to Markdown on Discord. - gists · GitHub
Discord uses Markdown, a simple plain text formatting system that'll help you ... your message in a code block, and it'll escape the...
Read more >How to safely render Markdown using react-markdown
Learn how to safely render Markdown syntax to the appropriate HTML with this short react-markdown tutorial.
Read more >Format messages - Mattermost Documentation
Use Markdown. You can also format your messages in Mattermost using Markdown to control text styling, links, headings, lists, code blocks, in-line code ......
Read more >Marked does not render code snippet and table correctly
Code block does not have background color; Table is lacking of cell border. I'm using marked package and nextjs to render the markdown...
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

fixed v0.3.27 https://github.com/hosseinmd/prettier-plugin-jsdoc/commit/67274804347e6c19b624c4b6ab125d818a7acf2b
@hosseinmd thanks for the speedy fixes, you’re doing a champion job 🙌