@zvndev/darkmown 0.8.0 → 0.8.1
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/compiler.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Darkmown are documented here. Versions follow [semver](https://semver.org); pre-1.0 minor versions may contain breaking changes.
|
|
4
4
|
|
|
5
|
+
## 0.8.1 — 2026-06-14
|
|
6
|
+
|
|
7
|
+
- Fix: a quoted array item that follows `, ` no longer keeps a leading space — `tags: [a, "b, c"]` parses to `["a", "b, c"]`, not `["a", " b, c"]`.
|
|
8
|
+
|
|
5
9
|
## 0.8.0 — 2026-06-14
|
|
6
10
|
|
|
7
11
|
- **Array frontmatter + readable `meta`.** Frontmatter now parses inline flow arrays — `tags: [sales, revenue, "q1, q2"]` becomes a real array (previously the literal string `"[sales, revenue]"`), with quoted items keeping their internal commas and bracket-free values staying plain scalars. Block sequences (`- item` lines) remain out of scope to keep the parser single-pass.
|
package/package.json
CHANGED
package/src/compiler.js
CHANGED
|
@@ -130,6 +130,7 @@ function parseInlineArray(raw) {
|
|
|
130
130
|
} else if ((char === '"' || char === "'") && buf.trim() === "") {
|
|
131
131
|
quote = char;
|
|
132
132
|
quoted = true;
|
|
133
|
+
buf = ""; // drop any whitespace between the comma and the opening quote
|
|
133
134
|
} else if (char === ",") {
|
|
134
135
|
push();
|
|
135
136
|
} else {
|