docs: fix demo code formatting

pull/145/head
Matias Capeletto 5 years ago
parent 3ffd4c39df
commit 89d9aba46e

@ -259,7 +259,12 @@ export default {
```html ```html
<ul> <ul>
<li v-for="todo in todos" :key="todo.id">{{ todo.text }}</li> <li
v-for="todo in todos"
:key="todo.id"
>
{{ todo.text }}
</li>
</ul> </ul>
``` ```
@ -320,15 +325,14 @@ export default { // Highlighted
**Output** **Output**
```js{1,4,6-8} ```js{1,4,6-8}
export default { export default { // Highlighted
// Highlighted
data () { data () {
return { return {
msg: `Highlighted! msg: `Highlighted!
This line isn't highlighted, This line isn't highlighted,
but this and the next 2 are.`, but this and the next 2 are.`,
motd: 'VitePress is awesome', motd: 'VitePress is awesome',
lorem: 'ipsum' lorem: 'ipsum',
} }
} }
} }

Loading…
Cancel
Save