Skip to content

Commit 7063ca3

Browse files
committed
doc: Update README.md
1 parent 7b312fc commit 7063ca3

File tree

2 files changed

+36
-32
lines changed

2 files changed

+36
-32
lines changed

core/README-zh.md

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

118-
```tsx mdx:preview
119-
import React from "react"
120-
const Demo = ()=>{
121-
return <div>测试</div>
122-
}
123-
124-
export default Demo
125-
```
118+
```markdown
119+
\```tsx mdx:preview
120+
import React from "react"
121+
const Demo = ()=>{
122+
return <div>测试</div>
123+
}
126124

125+
export default Demo
126+
\```
127+
```
127128

128-
```tsx mdx:preview:demo12
129-
import React from "react"
130-
const Demo = ()=>{
131-
return <div>测试</div>
132-
}
129+
```markdown
130+
\```tsx mdx:preview:demo12
131+
import React from "react"
132+
const Demo = ()=>{
133+
return <div>测试</div>
134+
}
133135

134-
export default Demo
135-
```
136+
export default Demo
137+
\```
138+
```
136139

137140
## 开发
138141

core/README.md

+18-17
Original file line numberDiff line numberDiff line change
@@ -115,26 +115,27 @@ 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
119+
\```tsx mdx:preview
120+
import React from "react"
121+
const Demo = ()=>{
122+
return <div>测试</div>
123+
}
118124

119-
```tsx mdx:preview
120-
import React from "react"
121-
const Demo = ()=>{
122-
return <div>测试</div>
123-
}
124-
125-
export default Demo
126-
```
127-
128-
129-
```tsx mdx:preview:demo12
130-
import React from "react"
131-
const Demo = ()=>{
132-
return <div>测试</div>
133-
}
125+
export default Demo
126+
\```
127+
```
134128

135-
export default Demo
136-
```
129+
```markdown
130+
\```tsx mdx:preview:demo12
131+
import React from "react"
132+
const Demo = ()=>{
133+
return <div>测试</div>
134+
}
137135

136+
export default Demo
137+
\```
138+
```
138139

139140
## Development
140141

0 commit comments

Comments
 (0)