Skip to content

Commit

Permalink
fix: 去除 vue 的特殊逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
zyao89 committed Mar 4, 2022
1 parent 59f8f77 commit 6fe323b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/plugins/markdown/mdCodeResult.js
Expand Up @@ -18,7 +18,7 @@ module.exports = md => {

const rawCode = fence(...args);
let mdMyCode = '';
if (['vue', 'html'].includes(lang) && !isInDemoContainer) {
if (['html'].includes(lang) && !isInDemoContainer) {
mdMyCode = `<CodeResult lang="${lang}" code="${encodeURIComponent(code.trim())}">${code.trim()}</CodeResult>`;
} else {
mdMyCode = `<CodeResult lang="${lang}" code="${encodeURIComponent(code.trim())}"></CodeResult>`;
Expand Down

0 comments on commit 6fe323b

Please sign in to comment.