Skip to content

Commit 75ee335

Browse files
committed
doc: Update README.md
1 parent 4403393 commit 75ee335

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/README-zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export type CodeBlockData = {
115115
2. `mdx:preview` 控制是否进行进行示例索引,通过对应所在行号,获取需要的示例对象。
116116
3. `mdx:preview:demo12` 通过 `demo12` 唯一标识,准确获取索引的 `示例代码``示例组件对象`
117117

118-
```markdown mdx:preview
119-
\```tsx
118+
```markdown
119+
\```tsx mdx:preview
120120
import React from "react"
121121
const Demo = ()=>{
122122
return <div>测试</div>

core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ Note: You need to add a special `meta` identifier to the code block example, and
115115
2. `mdx:preview` Controls whether to perform example indexing, and obtain the required example object through the corresponding line number.
116116
3. `mdx:preview:demo12` Uniquely identified by `demo12`, accurately obtain the `example code` or `example component object` of the index.
117117

118-
```markdown mdx:preview
119-
\```tsx
118+
```markdown
119+
\```tsx mdx:preview
120120
import React from "react"
121121
const Demo = ()=>{
122122
return <div>测试</div>

0 commit comments

Comments
 (0)