next-blurhash-previews 0.0.3-beta50 → 0.0.3-beta51
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/remark-plugin.js +2 -2
- package/package.json +1 -1
package/bin/remark-plugin.js
CHANGED
@@ -39,8 +39,8 @@ export const blurhashPlugin = publicPath => () => {
|
|
39
39
|
|
40
40
|
const newNode = `
|
41
41
|
<blurhash-image url="${originalImg}" preview='${JSON.stringify(blurHash)}'>
|
42
|
-
<img alt="${alt}" width="${w}" src="${originalImg}" slot="image" />
|
43
|
-
<canvas width="${
|
42
|
+
<img alt="${alt}" width="${w}" height="${h}" src="${originalImg}" slot="image" />
|
43
|
+
<canvas width="${w}" height="${h}" slot="preview"></canvas>
|
44
44
|
</blurhash-image>`.trim();
|
45
45
|
|
46
46
|
parent.children[index] = {
|