mystmd 1.3.24__tar.gz → 1.3.25__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mystmd
3
- Version: 1.3.24
3
+ Version: 1.3.25
4
4
  Summary: Command line tools for MyST Markdown
5
5
  Project-URL: Homepage, https://github.com/jupyter-book/mystmd
6
6
  Project-URL: Bug Tracker, https://github.com/jupyter-book/mystmd/issues
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mystmd",
3
- "version": "1.3.24",
3
+ "version": "1.3.25",
4
4
  "description": "Command line tools for MyST Markdown",
5
5
  "author": "Rowan Cockett <rowan@curvenote.com>",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  "commander": "^10.0.1",
46
46
  "core-js": "^3.31.1",
47
47
  "js-yaml": "^4.1.0",
48
- "myst-cli": "^1.3.24"
48
+ "myst-cli": "^1.3.25"
49
49
  }
50
50
  }
@@ -193891,7 +193891,7 @@ var {
193891
193891
  } = import_index.default;
193892
193892
 
193893
193893
  // src/version.ts
193894
- var version = "1.3.24";
193894
+ var version = "1.3.25";
193895
193895
  var version_default = version;
193896
193896
 
193897
193897
  // ../myst-cli/dist/build/build.js
@@ -194769,10 +194769,10 @@ var doiOrg = {
194769
194769
  };
194770
194770
  var elife = {
194771
194771
  test(url) {
194772
- return url.hostname.endsWith("elifesciences.org") && url.pathname.startsWith("/articles/");
194772
+ return url.hostname.endsWith("elifesciences.org") && /^\/(?:articles|reviewed-preprints)\/\d+$/.test(url.pathname);
194773
194773
  },
194774
194774
  parse(url) {
194775
- return `10.7554/eLife.${url.pathname.replace("/articles/", "")}`;
194775
+ return `10.7554/eLife.${url.pathname.replace(/^\/(?:articles|reviewed-preprints)\//, "")}`;
194776
194776
  }
194777
194777
  };
194778
194778
  var zenodo = {
@@ -237358,7 +237358,7 @@ var TRANSFORM_SOURCE2 = "BlockTransform:BlockMetadata";
237358
237358
  function blockMetadataTransform(mdast2, file) {
237359
237359
  const blocks2 = selectAll("block", mdast2);
237360
237360
  blocks2.forEach((block5) => {
237361
- var _a6, _b, _c;
237361
+ var _a6, _b, _c, _d2, _e;
237362
237362
  if (block5.meta) {
237363
237363
  try {
237364
237364
  const data = JSON.parse(block5.meta);
@@ -237372,7 +237372,17 @@ function blockMetadataTransform(mdast2, file) {
237372
237372
  });
237373
237373
  }
237374
237374
  }
237375
- const label = (_b = (_a6 = block5.data) === null || _a6 === void 0 ? void 0 : _a6.label) !== null && _b !== void 0 ? _b : (_c = block5.data) === null || _c === void 0 ? void 0 : _c.id;
237375
+ const kind = (_a6 = block5.data) === null || _a6 === void 0 ? void 0 : _a6.kind;
237376
+ if (kind) {
237377
+ block5.kind = kind;
237378
+ delete block5.data.kind;
237379
+ }
237380
+ const className = (_b = block5.data) === null || _b === void 0 ? void 0 : _b.class;
237381
+ if (className) {
237382
+ block5.class = className;
237383
+ delete block5.data.class;
237384
+ }
237385
+ const label = (_d2 = (_c = block5.data) === null || _c === void 0 ? void 0 : _c.label) !== null && _d2 !== void 0 ? _d2 : (_e = block5.data) === null || _e === void 0 ? void 0 : _e.id;
237376
237386
  if (typeof label === "string") {
237377
237387
  const normalized = normalizeLabel(label);
237378
237388
  if (normalized) {
@@ -289745,7 +289755,7 @@ var import_node_path16 = __toESM(require("path"), 1);
289745
289755
  var import_nbtx = __toESM(require_cjs2(), 1);
289746
289756
 
289747
289757
  // ../myst-cli/dist/version.js
289748
- var version2 = "1.3.24";
289758
+ var version2 = "1.3.25";
289749
289759
  var version_default2 = version2;
289750
289760
 
289751
289761
  // ../myst-cli/dist/utils/headers.js
File without changes
File without changes
File without changes
File without changes
File without changes