You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -50,6 +51,23 @@ The default allows embeds to enter fullscreen.
50
51
51
52
– a list of Notion blocks (e.g. `"callout"`) that should not be rendered.
52
53
54
+
### `imageOptions`: Object
55
+
56
+
– are used to override default image rendering.
57
+
`imageOptions` is an `Object` that requires a `component` parameter.
58
+
The `src` attribute is optional and defaults to `src`.
59
+
Any additional key value pairs are spread onto the component as element attributes.
60
+
61
+
e.g. to use `nuxt-img` components instead of HTML `img` elements
62
+
63
+
```js
64
+
imageOptions: {
65
+
component:"nuxt-img",
66
+
"some-attribute":"vue-notion-attr",
67
+
// src: 'src', // (default) can be overridden to customize the key of the `src` attribute
68
+
}
69
+
```
70
+
53
71
### `mapImageUrl`: Function
54
72
55
73
– a function that receives `(imageUrl: String, block: Object)` and returns a `url: String` that should be used during rendering.
@@ -74,7 +92,8 @@ mapPageUrl(pageId = "") {
74
92
### `pageLinkOptions`: Object
75
93
76
94
– are used to override links to other Notion pages with custom Vue components.
77
-
`pageLinkOptions` is an `Object` that requires a `component` and a `href` parameter.
95
+
`pageLinkOptions` is an `Object` that requires a `component` parameter.
96
+
The `href` attribute is optional and defaults to `href`.
78
97
79
98
e.g., to use `NuxtLink` components instead of HTML `a` elements
80
99
@@ -89,17 +108,6 @@ pageLinkOptions: {
89
108
90
109
– the [target attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target) of links referencing other pages (skipped for pages with `pageLinkeOptions`)
91
110
92
-
### `imageOptions`: Object
93
-
94
-
– this Object can be use to specify a custom Vue component you want to use to render pictures. Any other key in this object will spread as element attributes
95
-
96
-
```js
97
-
imageOptions: {
98
-
component:"LazyLoadImage",
99
-
attribute:"vue-notion-attr"
100
-
}
101
-
```
102
-
103
111
### `prism`: Boolean
104
112
105
113
– whether or not syntax-highlighting using Prims.js should be activated.
@@ -201,7 +209,7 @@ There are a few required steps to allow Nuxt to work with vue-notion
0 commit comments