@compiiile/compiiile 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,7 +29,7 @@ export default function rehypeImagePlugin() {
|
|
|
29
29
|
const parsedAltValue = processImageNode(node.properties?.alt)
|
|
30
30
|
if (parsedAltValue) {
|
|
31
31
|
node.properties.style = buildImageStyleAttribute(parsedAltValue)
|
|
32
|
-
node.properties.alt = parsedAltValue.altValue
|
|
32
|
+
node.properties.alt = parsedAltValue.altValue ?? node.properties?.alt
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
})
|
|
@@ -43,7 +43,7 @@ export default function rehypeImagePlugin() {
|
|
|
43
43
|
type: "mdxJsxAttribute",
|
|
44
44
|
value: buildImageStyleAttribute(parsedAltValue)
|
|
45
45
|
})
|
|
46
|
-
alt.value = parsedAltValue.altValue
|
|
46
|
+
alt.value = parsedAltValue.altValue ?? alt?.value
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiiile/compiiile",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.3",
|
|
5
5
|
"description": "The most convenient way to render a folder containing markdown files. Previewing and searching markdown files has never been that easy.",
|
|
6
6
|
"author": "AlbanCrepel <alban.crepel@gmail.com>",
|
|
7
7
|
"license": "GPL-3.0-only",
|
package/slides-preview.mdx
CHANGED
|
@@ -30,7 +30,7 @@ console.log("I prefer using this than the actual debugger")
|
|
|
30
30
|
|
|
31
31
|
I forgot to showcase once again the poorly-designed logo of Compiiile:
|
|
32
32
|
|
|
33
|
-

|
|
33
|
+

|
|
34
34
|
|
|
35
35
|
(it's using a nice font though)
|
|
36
36
|
|