tidy v2.1.2

v2.1.1

Markdown

JSDoc keeps the full info string of a code fence, so ts ignore stays ts ignore.


Fixes

  • JSDoc keeps a code fence's full info string. Before, tidy kept only the language, so ```ts ignore became ```ts. And title=x & {1,3} went away too. That's a real problem when a tool reads the meta: an example marked ignore got type-checked after all 🙃 This bug was in 2.0.0 & 2.1.0. (d5c424c)

    TypeScript
    /**
     * ```ts ignore
     * add(1, 2);
     * ```
     */

    The code inside is still formatted by the first word only. That's new for an @example: its code under ```ts ignore wasn't formatted before, and now it is.

    Note: This is a new deviation from prettier-plugin-jsdoc, which keeps only the language. oxfmt does the same. See js-jsdoc.

  • JSDoc prints a fence that the code inside can't close. A ``` line inside a fence used to end it early. Now the fence is longer than any fence in its code, or it's made of ~~~ when the info string has a backtick. (d5c424c)

Chore

  • The benchmark lists dprint's GraphQL plugin with the other versions. (237b890)
Esc