@hyperbook/markdown 0.28.5 → 0.29.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/dist/index.js +46 -10
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -65248,8 +65248,16 @@ var remarkDirectiveVideo_default = (ctx) => () => {
|
|
|
65248
65248
|
tagName: "video",
|
|
65249
65249
|
properties: {
|
|
65250
65250
|
controls: true,
|
|
65251
|
-
src: src ? ctx.makeUrl(
|
|
65252
|
-
|
|
65251
|
+
src: src ? ctx.makeUrl(
|
|
65252
|
+
src,
|
|
65253
|
+
"public",
|
|
65254
|
+
ctx.navigation.current || void 0
|
|
65255
|
+
) : void 0,
|
|
65256
|
+
poster: poster ? ctx.makeUrl(
|
|
65257
|
+
poster,
|
|
65258
|
+
"public",
|
|
65259
|
+
ctx.navigation.current || void 0
|
|
65260
|
+
) : void 0,
|
|
65253
65261
|
width: "100%"
|
|
65254
65262
|
},
|
|
65255
65263
|
children: [
|
|
@@ -68345,7 +68353,11 @@ var remarkDirectiveAudio_default = (ctx) => () => {
|
|
|
68345
68353
|
tagName: "div",
|
|
68346
68354
|
properties: {
|
|
68347
68355
|
class: "thumbnail",
|
|
68348
|
-
style: `background-image: url("${ctx.makeUrl(
|
|
68356
|
+
style: `background-image: url("${ctx.makeUrl(
|
|
68357
|
+
thumbnail,
|
|
68358
|
+
"public",
|
|
68359
|
+
ctx.navigation.current || void 0
|
|
68360
|
+
)}")`
|
|
68349
68361
|
},
|
|
68350
68362
|
children: []
|
|
68351
68363
|
});
|
|
@@ -68367,7 +68379,11 @@ var remarkDirectiveAudio_default = (ctx) => () => {
|
|
|
68367
68379
|
properties: {
|
|
68368
68380
|
class: "wave",
|
|
68369
68381
|
id,
|
|
68370
|
-
"data-src":
|
|
68382
|
+
"data-src": ctx.makeUrl(
|
|
68383
|
+
src || "",
|
|
68384
|
+
"public",
|
|
68385
|
+
ctx.navigation.current || void 0
|
|
68386
|
+
)
|
|
68371
68387
|
},
|
|
68372
68388
|
children: []
|
|
68373
68389
|
});
|
|
@@ -68388,7 +68404,11 @@ var remarkDirectiveAudio_default = (ctx) => () => {
|
|
|
68388
68404
|
tagName: "div",
|
|
68389
68405
|
properties: {
|
|
68390
68406
|
class: "thumbnail",
|
|
68391
|
-
style: `background-image: url("${ctx.makeUrl(
|
|
68407
|
+
style: `background-image: url("${ctx.makeUrl(
|
|
68408
|
+
thumbnail,
|
|
68409
|
+
"public",
|
|
68410
|
+
ctx.navigation.current || void 0
|
|
68411
|
+
)}")`
|
|
68392
68412
|
},
|
|
68393
68413
|
children: []
|
|
68394
68414
|
});
|
|
@@ -68620,7 +68640,11 @@ var remarkDirectiveDownload_default = (ctx) => () => {
|
|
|
68620
68640
|
class: "directive-download",
|
|
68621
68641
|
target: "_blank",
|
|
68622
68642
|
rel: "noopener noreferrer",
|
|
68623
|
-
href: ctx.makeUrl(
|
|
68643
|
+
href: ctx.makeUrl(
|
|
68644
|
+
src,
|
|
68645
|
+
"public",
|
|
68646
|
+
ctx.navigation.current || void 0
|
|
68647
|
+
)
|
|
68624
68648
|
};
|
|
68625
68649
|
data.hChildren = [
|
|
68626
68650
|
{
|
|
@@ -68880,7 +68904,11 @@ var remarkDirectiveExcalidraw_default = (ctx) => () => {
|
|
|
68880
68904
|
properties: {
|
|
68881
68905
|
"auto-zoom": autoZoom,
|
|
68882
68906
|
edit,
|
|
68883
|
-
src: ctx.makeUrl(
|
|
68907
|
+
src: ctx.makeUrl(
|
|
68908
|
+
src,
|
|
68909
|
+
"public",
|
|
68910
|
+
ctx.navigation.current || void 0
|
|
68911
|
+
),
|
|
68884
68912
|
onlinkopen
|
|
68885
68913
|
},
|
|
68886
68914
|
children: []
|
|
@@ -74743,7 +74771,11 @@ var remarkLink_default = (ctx) => () => {
|
|
|
74743
74771
|
visit(tree, (node3, index2) => {
|
|
74744
74772
|
if (typeof index2 === "number" && (node3.type === "link" || node3.type === "linkReference" || node3.type === "image" || node3.type === "imageReference" || node3.type === "definition")) {
|
|
74745
74773
|
if (node3.url) {
|
|
74746
|
-
node3.url = ctx.makeUrl(
|
|
74774
|
+
node3.url = ctx.makeUrl(
|
|
74775
|
+
node3.url,
|
|
74776
|
+
"public",
|
|
74777
|
+
ctx.navigation.current || void 0
|
|
74778
|
+
);
|
|
74747
74779
|
}
|
|
74748
74780
|
}
|
|
74749
74781
|
});
|
|
@@ -75406,7 +75438,11 @@ var remarkDirectiveGeogebra_default = (ctx) => () => {
|
|
|
75406
75438
|
height,
|
|
75407
75439
|
width,
|
|
75408
75440
|
borderRadius: 8,
|
|
75409
|
-
material: src ? ctx.makeUrl(
|
|
75441
|
+
material: src ? ctx.makeUrl(
|
|
75442
|
+
src,
|
|
75443
|
+
"public",
|
|
75444
|
+
ctx.navigation.current || void 0
|
|
75445
|
+
) : void 0,
|
|
75410
75446
|
language: ctx.config.language || "en",
|
|
75411
75447
|
"data-id": id,
|
|
75412
75448
|
showFullscreenButton,
|
|
@@ -76050,7 +76086,7 @@ var remarkDirectiveH5P_default = (ctx) => () => {
|
|
|
76050
76086
|
data.hName = "div";
|
|
76051
76087
|
data.hProperties = {
|
|
76052
76088
|
class: "directive-h5p",
|
|
76053
|
-
"data-src": src ? ctx.makeUrl(src, "public") : void 0,
|
|
76089
|
+
"data-src": src ? ctx.makeUrl(src, "public", ctx.navigation.current || void 0) : void 0,
|
|
76054
76090
|
"data-id": id
|
|
76055
76091
|
};
|
|
76056
76092
|
data.hChildren = [
|