module.exports = { extend: '@vuepress/theme-default', plugins: [ ['container', { type: 'preview', validate: (params) =>{ // return params.trim().match(/^preview\s+(.*)$/); return params.trim().match(/^preview/); }, render: (tokens, idx,otps,event)=> { var m = tokens[idx].info.trim().match(/^preview\s+(.*)$/); if (tokens[idx].nesting === 1) { // opening tag return ``; } else { // closing tag return ``; } } }], '@vuepress/back-to-top' ] }