Skip to content

Commit 97ade8f

Browse files
authored
fix: incorrect docs due to prettier + mdx v2+ incompatible (#499)
1 parent f3dea74 commit 97ade8f

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.changeset/strange-balloons-turn.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"eslint-mdx": patch
3+
"eslint-plugin-mdx": patch
4+
---
5+
6+
fix: incorrect docs due to prettier + mdx v2+ incompatible

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ See also <https://github.com/syntax-tree/mdast#code>
163163

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

166+
<!-- mdx v2+ incompatible -->
167+
<!-- prettier-ignore -->
166168
```mdx
167-
<div># Here's a text gradient short code!</div>
169+
<div>
170+
# Here's a text gradient short code!
171+
</div>
168172
```
169173

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

packages/eslint-mdx/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ See also <https://github.com/syntax-tree/mdast#code>
163163

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

166+
<!-- mdx v2+ incompatible -->
167+
<!-- prettier-ignore -->
166168
```mdx
167-
<div># Here's a text gradient short code!</div>
169+
<div>
170+
# Here's a text gradient short code!
171+
</div>
168172
```
169173

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

packages/eslint-plugin-mdx/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,12 @@ See also <https://github.com/syntax-tree/mdast#code>
163163

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

166+
<!-- mdx v2+ incompatible -->
167+
<!-- prettier-ignore -->
166168
```mdx
167-
<div># Here's a text gradient short code!</div>
169+
<div>
170+
# Here's a text gradient short code!
171+
</div>
168172
```
169173

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

0 commit comments

Comments
 (0)