From 9bb7f5b4c37a3cc2d8478a6ecf5ebe7eab6ea69b Mon Sep 17 00:00:00 2001 From: Kaitian Xie Date: Thu, 31 Oct 2019 21:02:06 -0700 Subject: [PATCH] Keep README up-to-date --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7cf0ea3..4721329 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,15 @@ npm i -D markdown-it-vuepress-code-snippet-enhanced ## Setup -In Vuepress `config.js` add the following: +In Vuepress `config.js` add the following: ```js -markdown: { - config: md => { +module.exports = { + markdown: { + extendMarkdown: md => { md.use(require('markdown-it-vuepress-code-snippet-enhanced')) } + } } ``` @@ -65,8 +67,8 @@ For transcluding one or **more** parts of a file, specify a unique pattern. ``` ##### Example 1 ```rb -require 'lib' -require 'other' +require 'lib' +require 'other' # |_|_| def hello @@ -78,8 +80,8 @@ end ##### Example 2 (Illustrating multiple transclusions in the same file) ```rb -require 'lib' -require 'other' +require 'lib' +require 'other' # |_|_| def hello @@ -119,7 +121,7 @@ Use a range indicating the `start` and `end` lines. This option is inclusive. @[code highlight={1-6} transcludeTag=style](@/docs/code.vue) ``` -### Source File +### Source File ```html