Skip to content

Commit 4776010

Browse files
committed
docs: update markdown slot
1 parent 592918a commit 4776010

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: packages/docs/docs/guide/markdown-slot.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ First, let's review the relationship between layout components and markdown file
88

99
<diagram-markdown-slot-relationship/>
1010

11-
markdown files are providers of metadata (page content, configuration, etc.), and layout components consume them. We can use `frontmatter` to define some metadata for common data types, but `frontmatter` is hard to do something about markdown / HTML, a complex metadata that involves pre-compile differences.
11+
Markdown files are providers of metadata (Page content, Configuration, etc.), while layout components consume them. We can use `frontmatter` to define some metadata for common data types, but `frontmatter` is hard to do something about markdown / HTML, a complex metadata that involves differences before and after compilation.
1212

1313
Markdown Slot is to solve this kind of problem.
1414

Diff for: packages/docs/docs/zh/guide/markdown-slot.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ VuePress 实现了一套针对 Markdown 的内容分发 API。通过这个特性
88

99
<diagram-markdown-slot-relationship/>
1010

11-
Markdown 文件是元数据(页面内容、配置等)的提供者,而布局组件负责消费他们。我们可以通过 frontmatter 来定义一些普通数据类型的元数据,但对于 Markdown/HTML 这种涉及到编译前差异的复杂元数据,frontmatter 却无能能力。
11+
Markdown 文件是元数据(页面内容、配置等)的提供者,而布局组件负责消费他们。我们可以通过 frontmatter 来定义一些普通数据类型的元数据,但对于 Markdown / HTML 这种涉及到编译前后差异的复杂元数据,frontmatter 却无能能力。
1212

13-
Markdown 插槽便是为了解决这一类问题
13+
Markdown 插槽便解决了这一类问题
1414

1515
## 具名插槽
1616

0 commit comments

Comments
 (0)