Skip to content

Commit

Permalink
fix: incorrect docs due to prettier + mdx v2+ incompatible (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 24, 2023
1 parent f3dea74 commit 97ade8f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/strange-balloons-turn.md
@@ -0,0 +1,6 @@
---
"eslint-mdx": patch
"eslint-plugin-mdx": patch
---

fix: incorrect docs due to prettier + mdx v2+ incompatible
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -163,8 +163,12 @@ See also <https://github.com/syntax-tree/mdast#code>

A new `MDXHeading` estree node type is exported from `eslint-mdx` which represents markdown heading in `mdx` like the following:

<!-- mdx v2+ incompatible -->
<!-- prettier-ignore -->
```mdx
<div># Here's a text gradient short code!</div>
<div>
# Here's a text gradient short code!
</div>
```

See also <https://github.com/syntax-tree/mdast#heading>
Expand Down
6 changes: 5 additions & 1 deletion packages/eslint-mdx/README.md
Expand Up @@ -163,8 +163,12 @@ See also <https://github.com/syntax-tree/mdast#code>

A new `MDXHeading` estree node type is exported from `eslint-mdx` which represents markdown heading in `mdx` like the following:

<!-- mdx v2+ incompatible -->
<!-- prettier-ignore -->
```mdx
<div># Here's a text gradient short code!</div>
<div>
# Here's a text gradient short code!
</div>
```

See also <https://github.com/syntax-tree/mdast#heading>
Expand Down
6 changes: 5 additions & 1 deletion packages/eslint-plugin-mdx/README.md
Expand Up @@ -163,8 +163,12 @@ See also <https://github.com/syntax-tree/mdast#code>

A new `MDXHeading` estree node type is exported from `eslint-mdx` which represents markdown heading in `mdx` like the following:

<!-- mdx v2+ incompatible -->
<!-- prettier-ignore -->
```mdx
<div># Here's a text gradient short code!</div>
<div>
# Here's a text gradient short code!
</div>
```

See also <https://github.com/syntax-tree/mdast#heading>
Expand Down

0 comments on commit 97ade8f

Please sign in to comment.