Open sxxov opened 5 months ago
Blockquotes are not consistently handled when formatted vs unformatted, & thus when either:
prettier
eslint
Then, blockquotes within JSDoc comments will be collapsed into a single paragraph.
https://github.com/sxxov/prettier-plugin-jsdoc--blockquote-repro
The repo contains the test case "Block quote". Running the following command will run prettier twice on the test case:
"Block quote"
npm run start
Which will output:
/** * > ```js * > > A block quote * > ```> Turns into> ```js * > A block quote * > ``` * * Sdssasdassd */
instead of:
/** * > ```js * > > A block quote * > ``` * * > Turns into * * > ```js * > A block quote * > ``` * * Sdssasdassd */
Summary
Blockquotes are not consistently handled when formatted vs unformatted, & thus when either:
prettier
twiceeslint
)Then, blockquotes within JSDoc comments will be collapsed into a single paragraph.
Repro
https://github.com/sxxov/prettier-plugin-jsdoc--blockquote-repro
The repo contains the test case
"Block quote"
. Running the following command will run prettier twice on the test case:Which will output:
instead of: