Skip to content

Commit

Permalink
Merge pull request #4 from daggerok/master
Browse files Browse the repository at this point in the history
Update setup instructions in README.md file according to current latest VuePress 1.x
  • Loading branch information
fabioaanthony authored Feb 28, 2021
2 parents 3cd9bb0 + f5c1bb5 commit 237f8d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ markdown: {
}
```

In Vuepress 1.x `config.js` add the following:

```js
markdown: {
extendMarkdown: md => {
md.use(require('markdown-it-vuepress-code-snippet-enhanced'))
}
}
```

You can now import code snippets into your markdown files with the following syntax:

```md
Expand Down

0 comments on commit 237f8d1

Please sign in to comment.