Migration to Latest
Legacy Mode
You can pass the second argument true
to enable legacy mode when calling mdEnhancePlugin
, and the plugin will try to run with V1 behavior.
New Features
v-pre
supportThe following container support is removed, so
vPre
option is added::: v-pre Some {{vue syntax}}. :::
Playground
Embed interactive demo with official presets and custom options
Kotlin Playground
Provide Kotlin playground via
kotlin-playground
Vue Playground
Provide Vue playground via
@vue/repl
Changed
Now all options are disabled by default
Code demo syntax changed
Before:
::: demo Title <!-- demo content --> ::: ::: demo [vue] Title <!-- demo content --> ::: ::: demo [react] Title <!-- demo content --> :::
After:
::: normal-demo Title <!-- demo content --> ::: ::: vue-demo Title <!-- demo content --> ::: ::: react-demo Title <!-- demo content --> :::
Removed Options
enableAll
removedThere are too many noob users who don't know what they are doing, and they just enable this option without using all the feature provided, yet they complain about load speed.
lineNumbers
removedVuePress 2 supports line number config per code block now.
imageFix
removedMr.Hope already made a PR to fix broken image links in Markdown, so it's no longer needed
alert
removedPlease use
@vuepress/plugin-markdown-hint
insteadcontainer
,hint
removedPlease use
@vuepress/plugin-markdown-hint
insteadimageLazyload
,lazyload
imgLazyload
removedPlease use
@vuepress/plugin-markdown-image
insteadimageTitle
,figure
removedPlease use
@vuepress/plugin-markdown-image
insteadimageMark
,imgMark
removedPlease use
@vuepress/plugin-markdown-image
insteadimgSize
,imageSize
removedPlease use
@vuepress/plugin-markdown-image
insteadtex
,katex
,mathjax
removedPlease use
@vuepress/plugin-markdown-math
insteadcodegroup
,codetabs
removedPlease use
@vuepress/plugin-markdown-tab
insteadtabs
removedPlease use
@vuepress/plugin-markdown-tab
insteadpresentation
revealJs
revealjs
removedPlease use
@vuepress/plugin-revealjs
insteadchartjs
echarts
flowchart
markmap
mermaid
plantuml
removedPlease use
@vuepress/plugin-markdown-chart
instead
Options Adjustments in Pre-release Version
vpre
is renamed tovPre
card
is replaced bycomponents
vuePlayground
no longer accept lib options
Changelog
660a5
-on22787
-on99f51
-on7d82b
-on92957
-on05f91
-on8a130
-on68339
-ona648a
-on99ea8
-on2a306
-on20520
-on5e7ca
-on4104e
-on6e91a
-oncdc15
-on2243a
-on8b5af
-on3dac6
-on00740
-onc6980
-onae5e4
-oncaf72
-on904c0
-on60053
-on716f9
-on67429
-on04b8a
-on3b530
-on