@hyperbook/markdown 0.24.8 → 0.24.9
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.js +3 -2
- package/dist/index.js.map +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -73314,6 +73314,7 @@ ${(code4.scripts ? [cdnLibraryUrl, ...code4.scripts] : []).map((src) => `<script
|
|
|
73314
73314
|
editor = false,
|
|
73315
73315
|
id = hash(node3)
|
|
73316
73316
|
} = node3.properties || {};
|
|
73317
|
+
let bEditor = editor === "true";
|
|
73317
73318
|
expectContainerDirective(node3, file, name);
|
|
73318
73319
|
registerDirective(file, name, ["client.js"], ["style.css"]);
|
|
73319
73320
|
requestJS(file, ["code-input", "code-input.min.js"]);
|
|
@@ -73342,7 +73343,7 @@ ${(code4.scripts ? [cdnLibraryUrl, ...code4.scripts] : []).map((src) => `<script
|
|
|
73342
73343
|
const srcdoc = template.replace("###SLOT###", wrapSketch(srcFile)).replace(/\u00A0/g, " ");
|
|
73343
73344
|
node3.tagName = "div";
|
|
73344
73345
|
node3.properties = {
|
|
73345
|
-
class: ["directive-p5",
|
|
73346
|
+
class: ["directive-p5", bEditor ? "" : "standalone"].join(" "),
|
|
73346
73347
|
"data-template": template.replace(/\u00A0/g, " "),
|
|
73347
73348
|
"data-id": id
|
|
73348
73349
|
};
|
|
@@ -73369,7 +73370,7 @@ ${(code4.scripts ? [cdnLibraryUrl, ...code4.scripts] : []).map((src) => `<script
|
|
|
73369
73370
|
}
|
|
73370
73371
|
]
|
|
73371
73372
|
},
|
|
73372
|
-
...
|
|
73373
|
+
...bEditor ? [
|
|
73373
73374
|
{
|
|
73374
73375
|
type: "element",
|
|
73375
73376
|
tagName: "div",
|