Skip to content

doc: Severe format errors #785

@YDX-2147483647

Description

@YDX-2147483647

Two weeks ago in 9f57a24 (chore: move to oxc + dprint), many markdown files were not correctly formatted.

Some pages in website become really hard to understand. Could you revert that commit?

Examples

Intentionally unformatted code got formatted

For example, the following pattern code
```javascript
obj.val && obj.val()
```
will match all the following code, regardless of white spaces or new lines.
```javascript
obj.val && obj.val() // verbatim match, of course
obj.val && obj.val() // this matches, too
// this matches as well!
const result = obj.val &&
obj.val()
```

obj.val && obj.val() // verbatim match, of course
obj.val && obj.val() // this matches, too

The above two identical lines used to be the following, showing that ast-grep understands that white spaces are meaningless here.

obj.val && obj.val() // verbatim match, of course
obj.val    &&     obj.val() // this matches, too

VitePress markdown extensions were not respected

VitePress markdown supports custom containers using :::.

:::details `ARGS` will be populated with a list of AST nodes. Click to see details.
| Code | Match |
| ------------------------------- | --------------- |
| `function foo(bar) { ... }` | [`bar`] |
| `function noop() {}` | [] |
| `function add(a, b, c) { ... }` | [`a`, `b`, `c`] |
| ::: | |

The above table used to be the following. Now ::: is put into the table, making the whole section aftwards collapse into the <details>.

:::details `ARGS` will be populated with a list of AST nodes. Click to see details.
|Code|Match|
|---|----|
|`function foo(bar) { ... }` | [`bar`] |
|`function noop() {}` | [] |
|`function add(a, b, c) { ... }` | [`a`, `b`, `c`] |
:::

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy