Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 620 Bytes

migration-from-vuepress.md

File metadata and controls

24 lines (15 loc) · 620 Bytes

Migration from VuePress

Markdown

Images

Unlike VuePress, VitePress handles base of your config automatically when you use static image.

Hence, now you can render images without img tag.

- <img :src="$withBase('/foo.png')" alt="foo">
+ ![foo](/foo.png)

::: warning For dynamic images you still need withBase as shown in Base URL guide. :::

Use <img.*withBase\('(.*)'\).*alt="([^"]*)".*> regex to find and replace it with ![$2]($1) to replace all the images with ![](...) syntax.


more to follow...