@hyperbook/markdown 0.37.0 → 0.37.2
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 +7 -3
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -61379,7 +61379,7 @@ var remarkDirectiveSqlIde_default = (ctx) => () => {
|
|
|
61379
61379
|
children: [
|
|
61380
61380
|
{
|
|
61381
61381
|
type: "raw",
|
|
61382
|
-
value: `{'id': '${id}', 'databaseURL': '${db}'}`
|
|
61382
|
+
value: `{'id': '${id}', 'databaseURL': '${ctx.makeUrl(db || "", "public", ctx.navigation.current || void 0)}'}`
|
|
61383
61383
|
},
|
|
61384
61384
|
...codes,
|
|
61385
61385
|
{
|
|
@@ -62560,7 +62560,7 @@ var rehypeHtmlStructure_default = (ctx) => () => {
|
|
|
62560
62560
|
properties: {
|
|
62561
62561
|
rel: "icon",
|
|
62562
62562
|
type: "image/x-icon",
|
|
62563
|
-
href: makeUrl(["favicon.ico"], "public")
|
|
62563
|
+
href: makeUrl(["/favicon.ico"], "public")
|
|
62564
62564
|
},
|
|
62565
62565
|
children: []
|
|
62566
62566
|
},
|
|
@@ -64025,7 +64025,11 @@ var remarkImage_default = (ctx) => () => {
|
|
|
64025
64025
|
tagName: "img",
|
|
64026
64026
|
properties: {
|
|
64027
64027
|
...figureProps,
|
|
64028
|
-
src:
|
|
64028
|
+
src: ctx.makeUrl(
|
|
64029
|
+
node3.url,
|
|
64030
|
+
"public",
|
|
64031
|
+
ctx.navigation.current || void 0
|
|
64032
|
+
),
|
|
64029
64033
|
alt: node3.alt,
|
|
64030
64034
|
onclick: `hyperbook.toggleLightbox(this)`
|
|
64031
64035
|
},
|