Skip to content

Commit

Permalink
docs: update markdown slot
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jan 29, 2019
1 parent 592918a commit 4776010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docs/docs/guide/markdown-slot.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ First, let's review the relationship between layout components and markdown file

<diagram-markdown-slot-relationship/>

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.
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.

Markdown Slot is to solve this kind of problem.

Expand Down
4 changes: 2 additions & 2 deletions packages/docs/docs/zh/guide/markdown-slot.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ VuePress 实现了一套针对 Markdown 的内容分发 API。通过这个特性

<diagram-markdown-slot-relationship/>

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

Markdown 插槽便是为了解决这一类问题
Markdown 插槽便解决了这一类问题

## 具名插槽

Expand Down

0 comments on commit 4776010

Please sign in to comment.