@reiwuzen/blocky 1.4.7 → 1.4.8

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/dist/index.cjs CHANGED
@@ -596,11 +596,10 @@ function applyEnterTransform(block) {
596
596
  const text = getRawText(block);
597
597
  if (text !== "```")
598
598
  return import_result4.Result.Ok({ block, converted: false });
599
- const strippedContent = stripPrefix(block, "```");
600
599
  const converted = {
601
600
  id: block.id,
602
601
  type: "code",
603
- content: strippedContent,
602
+ content: [{ type: "code", text: "" }],
604
603
  meta: buildMetaForTarget("code")
605
604
  };
606
605
  return import_result4.Result.Ok({ block: converted, converted: true });
package/dist/index.js CHANGED
@@ -527,11 +527,10 @@ function applyEnterTransform(block) {
527
527
  const text = getRawText(block);
528
528
  if (text !== "```")
529
529
  return Result4.Ok({ block, converted: false });
530
- const strippedContent = stripPrefix(block, "```");
531
530
  const converted = {
532
531
  id: block.id,
533
532
  type: "code",
534
- content: strippedContent,
533
+ content: [{ type: "code", text: "" }],
535
534
  meta: buildMetaForTarget("code")
536
535
  };
537
536
  return Result4.Ok({ block: converted, converted: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reiwuzen/blocky",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "Pure TypeScript block editor engine. Headless, framework-agnostic — content mutation, formatting, transforms, serialization, and history.",
5
5
  "author": "Rei WuZen",
6
6
  "license": "ISC",