Skip to content

Commit

Permalink
docs(zh): sync translations (#3459)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
awxiaoxian2020 and brc-dd committed Jan 16, 2024
1 parent f815e76 commit 9878e56
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions docs/zh/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export default { // Highlighted
}
```

也可以使用 `// [!code hl]` 注释实现行高亮。
也可以使用 `// [!code highlight]` 注释实现行高亮。

**输入**

Expand All @@ -386,7 +386,7 @@ export default { // Highlighted
export default {
data () {
return {
msg: 'Highlighted!' // [!code hl]
msg: 'Highlighted!' // [!!code highlight]
}
}
}
Expand All @@ -399,7 +399,7 @@ export default {
export default {
data() {
return {
msg: 'Highlighted!' // [!code hl]
msg: 'Highlighted!' // [!code highlight]
}
}
}
Expand All @@ -413,14 +413,12 @@ export default {

**输入**

`!code` 后面只需要一个空格,为了展示原始的代码而不被实际渲染,这里有两个空格:

````
```js
export default {
data () {
return {
msg: 'Focused!' // [!code focus]
msg: 'Focused!' // [!!code focus]
}
}
}
Expand All @@ -445,15 +443,13 @@ export default {

**输入**

`!code` 后面只需要一个空格,为了展示原始的代码而不被实际渲染,这里有两个空格。

````
```js
export default {
data () {
return {
msg: 'Removed' // [!code --]
msg: 'Added' // [!code ++]
msg: 'Removed' // [!!code --]
msg: 'Added' // [!!code ++]
}
}
}
Expand All @@ -479,15 +475,13 @@ export default {

**输入**

`!code` 后面只需要一个空格,为了展示原始的代码而不被实际渲染,这里有两个空格。

````
```js
export default {
data () {
return {
msg: 'Error', // [!code error]
msg: 'Warning' // [!code warning]
msg: 'Error', // [!!code error]
msg: 'Warning' // [!!code warning]
}
}
}
Expand Down

0 comments on commit 9878e56

Please sign in to comment.