This repository was archived by the owner on Jul 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ npm install vue-notion-render --save
2525
2626in ` src/index.js ` file import the component and use Vue.component method.
2727
28- ```
28+ ``` js
2929 import Vue from " vue"
3030 import VueNotionRender from " vue-notion-render"
3131 Vue .component (' VueNotionRender' , VueNotionRender)
@@ -37,23 +37,23 @@ in order to use it with Nuxt.js create a Nuxt plugin.
3737
38381 . in ` /plugins ` directory create a file ` vue-notion-render.js `
3939
40- ```
40+ ``` js
4141 import VueNotionRender from ' vue-notion-render'
4242 import Vue from ' vue'
4343 Vue .component (' VueNotionRender' , VueNotionRender)
4444 ```
4545
46462 . Register the plugin by adding the file in ` nuxt.config.js ` plugins array
4747
48- ```
48+ ``` js
4949 plugins: [' ~/plugins/vue-notion-render.js' ]
5050 ```
5151
5252### Local Component
5353
5454if you don't want to register the component globally you can use it locally in your component.
5555
56- ```
56+ ``` js
5757 < script>
5858 import VueNotionRender from " vue-notion-render"
5959 ...
@@ -82,7 +82,7 @@ Currently the Official API doesn't support all Notion blocks, a temporary soluti
8282< / template>
8383
8484< script>
85- ...
85+ ... js
8686export default {
8787 ...
8888 data () {
You can’t perform that action at this time.
0 commit comments