create-volt 0.23.0 → 0.24.0

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 CHANGED
@@ -4,6 +4,15 @@ All notable changes to `create-volt` are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/), and this project adheres to
5
5
  [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.24.0] - 2026-06-29
8
+
9
+ ### Added
10
+ - The `pages` add-on now supports **`format: html`** in front-matter — those
11
+ pages are served **verbatim** (no markdown processing), so rich/complex layouts
12
+ (e.g. from the WYSIWYG editor) are preserved losslessly. Plain markdown pages
13
+ are unchanged. (`volt-addon-editor` 0.2.0 now stores `getHTML()` with
14
+ `format: html` so editor layouts round-trip exactly.)
15
+
7
16
  ## [0.23.0] - 2026-06-29
8
17
 
9
18
  ### Added
@@ -334,6 +343,7 @@ All notable changes to `create-volt` are documented here. The format follows
334
343
  watching and full-page hot reload. Supports `--skip-install` and `--force`,
335
344
  and auto-detects npm / pnpm / yarn / bun for the install step.
336
345
 
346
+ [0.24.0]: https://github.com/MIR-2025/volt/releases/tag/v0.24.0
337
347
  [0.23.0]: https://github.com/MIR-2025/volt/releases/tag/v0.23.0
338
348
  [0.22.0]: https://github.com/MIR-2025/volt/releases/tag/v0.22.0
339
349
  [0.21.0]: https://github.com/MIR-2025/volt/releases/tag/v0.21.0
@@ -78,7 +78,10 @@ export async function pagesRouter({ dir }) {
78
78
  const file = path.join(dir, slug + ".md");
79
79
  if (!fs.existsSync(file)) return next();
80
80
  const { meta, body } = parseFrontMatter(fs.readFileSync(file, "utf8"));
81
- res.type("html").send(shell(meta.title || slug, marked.parse(body)));
81
+ // `format: html` pages (e.g. from the WYSIWYG editor) are served verbatim to
82
+ // preserve complex layouts; everything else is markdown rendered with marked.
83
+ const inner = meta.format === "html" ? body : marked.parse(body);
84
+ res.type("html").send(shell(meta.title || slug, inner));
82
85
  });
83
86
  return r;
84
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-volt",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Scaffold a new Volt app — no-build, signals-based UI with Socket.io hot reload.",
5
5
  "type": "module",
6
6
  "bin": {