@reiwuzen/blocky 1.4.6 → 1.4.7
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 +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -596,10 +596,11 @@ 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, "```");
|
|
599
600
|
const converted = {
|
|
600
601
|
id: block.id,
|
|
601
602
|
type: "code",
|
|
602
|
-
content:
|
|
603
|
+
content: strippedContent,
|
|
603
604
|
meta: buildMetaForTarget("code")
|
|
604
605
|
};
|
|
605
606
|
return import_result4.Result.Ok({ block: converted, converted: true });
|
package/dist/index.js
CHANGED
|
@@ -527,10 +527,11 @@ 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, "```");
|
|
530
531
|
const converted = {
|
|
531
532
|
id: block.id,
|
|
532
533
|
type: "code",
|
|
533
|
-
content:
|
|
534
|
+
content: strippedContent,
|
|
534
535
|
meta: buildMetaForTarget("code")
|
|
535
536
|
};
|
|
536
537
|
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.
|
|
3
|
+
"version": "1.4.7",
|
|
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",
|