Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/content/docs/zh-cn/guides/markdown-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ const {frontmatter} = Astro.props;

## 请求远程 Markdown

Astro 不包括对 [内容集合](/zh-cn/guides/content-collections/) 之外的远程 Markdown 的内置支持!
Astro 内置的 Markdown 处理器无法用于处理远程 Markdown 内容。

如需在 [内容集合](/zh-cn/guides/content-collections/) 中使用远程 Markdown,你可以通过 [构建自定义加载器](/zh-cn/guides/content-collections/#构建一个自定义加载器) 来实现,该加载器可调用 [`renderMarkdown()` 函数](/zh-cn/reference/content-loader-reference/#rendermarkdown) 进行内容渲染。

要直接获取远程的 Markdown 并将其渲染为 HTML,你需要从 NPM 安装并配置你自己的 Markdown 解析器。这不会继承你配置的任何 Astro 内置 Markdown 设置。

Expand Down