[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n(zh-cn): update v3.mdx & images.mdx & view-transitions.mdx #8657

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix broken link
  • Loading branch information
liruifengv committed Jun 25, 2024
commit 5f3dbcf8c456ea7e578b7452ed1db19a061583a3
4 changes: 2 additions & 2 deletions src/content/docs/zh-cn/guides/upgrade-to/v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ import rocket from '../../assets/rocket.png';

#### 决定在哪里存储你的图像

请参阅 [图像指南](#在哪里存储图像) 来帮助你决定在哪里存储你的图像。你可能希望利用 `astro:assets` 带来的灵活性,来存储你的图像的新选项。例如,现在可以使用标准的 Markdown `![alt](src)` 语法,在 Markdown、MDX 和 Markdoc 中引用项目 `src/` 中的相对图像。
请参阅 [图像指南](/zh-cn/guides/images/#在哪里存储图像) 来帮助你决定在哪里存储你的图像。你可能希望利用 `astro:assets` 带来的灵活性,来存储你的图像的新选项。例如,现在可以使用标准的 Markdown `![alt](src)` 语法,在 Markdown、MDX 和 Markdoc 中引用项目 `src/` 中的相对图像。

#### 更新现有的 `<img>` 标签

Expand All @@ -750,7 +750,7 @@ interface ImageMetadata {
}
```

你必须更新任何现有 `<img>` 标签的 `src` 属性(包括任何 [UI 框架组件中的图像](#框架组件中的图像)),你也可以更新从导入的图像中获得的其他属性。
你必须更新任何现有 `<img>` 标签的 `src` 属性(包括任何 [UI 框架组件中的图像](/zh-cn/guides/images/#框架组件中的图像)),你也可以更新从导入的图像中获得的其他属性。

```astro title="src/components/MyComponent.astro" ".src" ".width" ".height" del={4} ins={6}
---
Expand Down
Loading