Browse Source

docs: update demo code style

pull/77/merge
tangjinzhou 7 years ago
parent
commit
b0d1c71c32
  1. 2
      site/components/demoContainer.vue

2
site/components/demoContainer.vue

@ -65,7 +65,7 @@ export default {
const cnHtml = marked(cn[1].trim())
const usHtml = marked(us[1].trim())
const sourceCode = this.code.replace(cn[0], '').replace(us[0], '').trim()
const codeHtml = marked('````jsx\n' + sourceCode + '````')
const codeHtml = marked('````html\n' + sourceCode + '````')
return {
codeHtml,
cnHtml,

Loading…
Cancel
Save