@hyperbook/markdown 0.36.1 → 0.36.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 CHANGED
@@ -71233,6 +71233,17 @@ var remarkDirectiveGeogebra_default = (ctx) => () => {
71233
71233
  class: "directive-geogebra",
71234
71234
  style: `max-height: ${height}px; max-width: ${width}px; aspect-ratio: ${width}/${height};`
71235
71235
  };
71236
+ let material = void 0;
71237
+ let filename = void 0;
71238
+ if (src && src.startsWith("https://www.geogebra.org/") && !src.endsWith(".ggb")) {
71239
+ material = src;
71240
+ } else if (src) {
71241
+ filename = ctx.makeUrl(
71242
+ src,
71243
+ "public",
71244
+ ctx.navigation.current || void 0
71245
+ );
71246
+ }
71236
71247
  const value = toText2(node3);
71237
71248
  data.hChildren = [
71238
71249
  {
@@ -71243,11 +71254,8 @@ var remarkDirectiveGeogebra_default = (ctx) => () => {
71243
71254
  height,
71244
71255
  width,
71245
71256
  borderRadius: 8,
71246
- filename: src ? ctx.makeUrl(
71247
- src,
71248
- "public",
71249
- ctx.navigation.current || void 0
71250
- ) : void 0,
71257
+ material,
71258
+ filename,
71251
71259
  language: ctx.config.language || "en",
71252
71260
  "data-id": id,
71253
71261
  showFullscreenButton,