Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 10, 2023
1 parent 63a2cd6 commit 68a0d0b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 22 deletions.
14 changes: 8 additions & 6 deletions docs/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ Take our documentation source files as an example:
<RouterLink to="/reference/config.html">Config Reference</RouterLink>
<RouterLink to="/guide/getting-started.html">Getting Started</RouterLink>
<RouterLink to="/guide/">Guide</RouterLink>
<RouterLink to="/reference/config.html#links"
>Config Reference &gt; markdown.links</RouterLink
>
<a href="https://github.com" target="_blank" rel="noopener noreferrer"
>GitHub</a
>
<RouterLink to="/reference/config.html#links">
Config Reference &gt; markdown.links
</RouterLink>
<a href="https://github.com" target="_blank" rel="noopener noreferrer">
GitHub
</a>
</template>
```

Expand Down Expand Up @@ -269,6 +269,7 @@ If you want to make Vue syntax work in those languages anyway, try to disable th

```md:no-v-pre
<!-- This will be compiled by Vue -->

1 + 2 + 3 = {{ 1 + 2 + 3 }}
```

Expand All @@ -288,6 +289,7 @@ const onePlusTwoPlusThree = {{ 1 + 2 + 3 }}

```md:no-v-pre
<!-- This will be compiled by Vue -->
1 + 2 + 3 = {{ 1 + 2 + 3 }}
```

Expand Down
12 changes: 7 additions & 5 deletions docs/reference/plugin/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ export default {

- Default:

<!-- prettier-ignore-start -->
```ts
;(info: string): string =>
`<div class="custom-container ${type}">${
info ? `<p class="custom-container-title">${info}</p>` : ''
}\n`
(info: string): string =>
`<div class="custom-container ${type}">${info ? `<p class="custom-container-title">${info}</p>` : ''}\n`
```
<!-- prettier-ignore-end -->

- Details:

Expand All @@ -114,9 +114,11 @@ export default {

- Default:

<!-- prettier-ignore-start -->
```ts
;(): string => '</div>\n'
(): string => '</div>\n'
```
<!-- prettier-ignore-end -->

- Details:

Expand Down
14 changes: 8 additions & 6 deletions docs/zh/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ VuePress 会使用 [markdown-it](https://github.com/markdown-it/markdown-it) 来
<RouterLink to="/zh/reference/config.html">配置参考</RouterLink>
<RouterLink to="/zh/guide/getting-started.html">快速上手</RouterLink>
<RouterLink to="/zh/guide/">指南</RouterLink>
<RouterLink to="/zh/reference/config.html#links"
>配置参考 &gt; markdown.links</RouterLink
>
<a href="https://github.com" target="_blank" rel="noopener noreferrer"
>GitHub</a
>
<RouterLink to="/zh/reference/config.html#links">
配置参考 &gt; markdown.links
</RouterLink>
<a href="https://github.com" target="_blank" rel="noopener noreferrer">
GitHub
</a>
</template>
```

Expand Down Expand Up @@ -270,6 +270,7 @@ const line3 = 'This is line 3'

```md:no-v-pre
<!-- 这里会被 Vue 编译 -->

1 + 2 + 3 = {{ 1 + 2 + 3 }}
```

Expand All @@ -289,6 +290,7 @@ const onePlusTwoPlusThree = {{ 1 + 2 + 3 }}

```md:no-v-pre
<!-- 这里会被 Vue 编译 -->
1 + 2 + 3 = {{ 1 + 2 + 3 }}
```

Expand Down
12 changes: 7 additions & 5 deletions docs/zh/reference/plugin/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ export default {

- 默认值:

<!-- prettier-ignore-start -->
```ts
;(info: string): string =>
`<div class="custom-container ${type}">${
info ? `<p class="custom-container-title">${info}</p>` : ''
}\n`
(info: string): string =>
`<div class="custom-container ${type}">${info ? `<p class="custom-container-title">${info}</p>` : ''}\n`
```
<!-- prettier-ignore-end -->

- 详情:

Expand All @@ -114,9 +114,11 @@ export default {

- 默认值:

<!-- prettier-ignore-start -->
```ts
;(): string => '</div>\n'
(): string => '</div>\n'
```
<!-- prettier-ignore-end -->

- 详情:

Expand Down

0 comments on commit 68a0d0b

Please sign in to comment.