vowel 0.6.1 → 0.6.2
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.
- package/README.md +2 -2
- package/package.json +1 -1
- package/plugins/markdown/index.js +10 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ See the docs: [vowel.cc](https://vowel.cc).
|
|
|
12
12
|
### Launch checklist
|
|
13
13
|
|
|
14
14
|
- [x] CLI
|
|
15
|
-
- [
|
|
15
|
+
- [x] Docs
|
|
16
16
|
- [x] Classes
|
|
17
17
|
- [x] Route patterns
|
|
18
18
|
- [x] Post list metadata
|
|
@@ -40,7 +40,7 @@ See the docs: [vowel.cc](https://vowel.cc).
|
|
|
40
40
|
- [x] Robots.txt
|
|
41
41
|
- [x] Sitemap.xml
|
|
42
42
|
- [x] RSS
|
|
43
|
-
- [
|
|
43
|
+
- [ ] 404.html (just make 404.md)
|
|
44
44
|
- [ ] Markup
|
|
45
45
|
- [.] Image as figure
|
|
46
46
|
- [x] Admonitions
|
package/package.json
CHANGED
|
@@ -1072,7 +1072,16 @@ function writeFile(destination, database, config) {
|
|
|
1072
1072
|
|
|
1073
1073
|
visit(treeContent, { tagName: "img" }, (node, index, parent) => {
|
|
1074
1074
|
const { src, alt } = node.properties
|
|
1075
|
-
|
|
1075
|
+
const image = createDynamicImage(src, database, destination.path.path, alt)
|
|
1076
|
+
if (index === 0 && parent.children.length > 1) {
|
|
1077
|
+
console.log(parent.children)
|
|
1078
|
+
const [_, ...caption] = parent.children
|
|
1079
|
+
parent.children = [
|
|
1080
|
+
h("figure", [image, h("figcaption", caption)])
|
|
1081
|
+
]
|
|
1082
|
+
} else {
|
|
1083
|
+
parent.children.splice(index, 1, image)
|
|
1084
|
+
}
|
|
1076
1085
|
})
|
|
1077
1086
|
|
|
1078
1087
|
visit(treeContent, testPaths, ({ children: [child] }, i, p) => {
|