Skip to content

Commit

Permalink
docs: add img alias change, close #1373
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Oct 10, 2023
1 parent f342a86 commit 9877c99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docs/guide/migration.md
Expand Up @@ -239,9 +239,13 @@ This directory will not be used as local theme implicitly if it is existed.

You need to import and set your local theme via [theme](../reference/config.md#theme) option.

### Markdown slot Change
### Markdown Change

Markdown slot is no longer supported.
- Markdown slot is no longer supported.

- Links behavior in Markdown image syntax are aligned with standard Markdown, this means they no longer support alias.

For `<img>` tags, only links starting with `.` are treated as relative links, which is the same as V1 behavior. You should use `<img>` tags instead if you want to use alias.

### CLI Change

Expand Down
7 changes: 5 additions & 2 deletions docs/zh/guide/migration.md
Expand Up @@ -239,9 +239,12 @@ VuePress v1 的 Stylus 调色板系统 (即 `styles/palette.styl` 和 `styles/

你需要在 [theme](../reference/config.md#theme) 配置项中显式引入并使用本地主题。

### Markdown 插槽变更
### Markdown 变更

Markdown 插槽不再被支持。
- Markdown 插槽不再被支持。
- Markdown 图片中的链接行为已与标准 Markdown 对齐,这意味着它们不在支持别名。

对于 `<img>` 标签,只有以 `.` 开头的链接才会被识别成相对路径,这与 V1 行为一致。如果你使用别名,你应该转用 `<img>` 标签。

### CLI 变更

Expand Down

0 comments on commit 9877c99

Please sign in to comment.