mystmd 1.1.49__py3-none-any.whl → 1.1.50__py3-none-any.whl

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.3
2
2
  Name: mystmd
3
- Version: 1.1.49
3
+ Version: 1.1.50
4
4
  Summary: Command line tools for MyST Markdown
5
5
  Project-URL: Homepage, https://github.com/executablebooks/mystmd
6
6
  Project-URL: Bug Tracker, https://github.com/executablebooks/mystmd/issues
@@ -0,0 +1,8 @@
1
+ mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mystmd_py/main.py,sha256=9gXH26VLfflzPV0t9exVsPynO-kBxUPoJGy4VEf1hNQ,1467
3
+ mystmd_py/myst.cjs,sha256=73e9M4NcXgnPAxjc8tHf7ANPJkXfIP4lL-kQoaNjIvM,12729060
4
+ mystmd-1.1.50.dist-info/METADATA,sha256=nrjeEor5Scq07yq-CdS6g0qicyqd2D-dCwibJRw9sp0,2969
5
+ mystmd-1.1.50.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
6
+ mystmd-1.1.50.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
7
+ mystmd-1.1.50.dist-info/licenses/LICENSE,sha256=vgXlcTOVbxYpGiMuE9NqgguIBXAH0hJAktlaxiyZ2wg,1088
8
+ mystmd-1.1.50.dist-info/RECORD,,
mystmd_py/myst.cjs CHANGED
@@ -195964,7 +195964,7 @@ var {
195964
195964
  } = import_index.default;
195965
195965
 
195966
195966
  // src/version.ts
195967
- var version = "1.1.49";
195967
+ var version = "1.1.50";
195968
195968
  var version_default = version;
195969
195969
 
195970
195970
  // ../myst-cli/dist/build/build.js
@@ -202703,7 +202703,6 @@ var RuleId;
202703
202703
  RuleId2["texRenders"] = "tex-renders";
202704
202704
  RuleId2["exportExtensionCorrect"] = "export-extension-correct";
202705
202705
  RuleId2["exportArticleExists"] = "export-article-exists";
202706
- RuleId2["exportFormatDetermined"] = "export-format-determined";
202707
202706
  RuleId2["texParses"] = "tex-parses";
202708
202707
  RuleId2["jatsParses"] = "jats-parses";
202709
202708
  RuleId2["mystFileLoads"] = "myst-file-loads";
@@ -285809,7 +285808,7 @@ var import_node_path16 = __toESM(require("path"), 1);
285809
285808
  var import_nbtx = __toESM(require_cjs2(), 1);
285810
285809
 
285811
285810
  // ../myst-cli/dist/version.js
285812
- var version2 = "1.1.49";
285811
+ var version2 = "1.1.50";
285813
285812
  var version_default2 = version2;
285814
285813
 
285815
285814
  // ../myst-cli/dist/utils/headers.js
@@ -287801,7 +287800,7 @@ function reduceOutputs(session, mdast2, file, writeFolder, opts) {
287801
287800
  // ../myst-cli/dist/transforms/inlineExpressions.js
287802
287801
  var metadataSection = "user_expressions";
287803
287802
  function findExpression(expressions, value) {
287804
- return expressions.find((expr) => expr.expression === value);
287803
+ return expressions === null || expressions === void 0 ? void 0 : expressions.find((expr) => expr.expression === value);
287805
287804
  }
287806
287805
  function processLatex(value) {
287807
287806
  return value.trim().replace(/^\$(\\displaystyle)?/, "").replace(/\$$/, "").trim();
@@ -297610,6 +297609,7 @@ function resolveTemplate(sourceFile, exp, disableTemplate) {
297610
297609
  return exp.template;
297611
297610
  }
297612
297611
  function resolveFormat(vfile2, exp) {
297612
+ var _a6, _b, _c;
297613
297613
  if (exp.format && exp.format !== ExportFormats.pdf) {
297614
297614
  return exp.format;
297615
297615
  }
@@ -297623,18 +297623,13 @@ function resolveFormat(vfile2, exp) {
297623
297623
  suggestedOutputFormat = EXT_TO_FORMAT[ext2];
297624
297624
  }
297625
297625
  }
297626
- if (!exp.template) {
297627
- if (exp.format)
297628
- return suggestedPdfFormat;
297629
- return suggestedOutputFormat !== null && suggestedOutputFormat !== void 0 ? suggestedOutputFormat : suggestedPdfFormat;
297630
- }
297631
- if (exp.template.endsWith("-tex"))
297626
+ if ((_a6 = exp.template) === null || _a6 === void 0 ? void 0 : _a6.endsWith("-tex"))
297632
297627
  return suggestedPdfFormat;
297633
- if (exp.template.endsWith("-typst"))
297628
+ if ((_b = exp.template) === null || _b === void 0 ? void 0 : _b.endsWith("-typst"))
297634
297629
  return ExportFormats.typst;
297635
- if (exp.template.endsWith("-docx"))
297630
+ if ((_c = exp.template) === null || _c === void 0 ? void 0 : _c.endsWith("-docx"))
297636
297631
  return ExportFormats.docx;
297637
- if (import_node_fs26.default.existsSync(exp.template)) {
297632
+ if (exp.template && import_node_fs26.default.existsSync(exp.template)) {
297638
297633
  const templateFiles = import_node_fs26.default.readdirSync(exp.template);
297639
297634
  const templateTexFiles = templateFiles.filter((file) => file.endsWith(".tex"));
297640
297635
  const templateTypFiles = templateFiles.filter((file) => file.endsWith(".typ"));
@@ -297643,8 +297638,9 @@ function resolveFormat(vfile2, exp) {
297643
297638
  if (!templateTexFiles.length && templateTypFiles.length)
297644
297639
  return ExportFormats.typst;
297645
297640
  }
297646
- fileError(vfile2, `Cannot determine export type from template ${exp.template} - you must specify export 'format'`, { ruleId: RuleId.exportFormatDetermined });
297647
- return void 0;
297641
+ if (exp.format)
297642
+ return suggestedPdfFormat;
297643
+ return suggestedOutputFormat !== null && suggestedOutputFormat !== void 0 ? suggestedOutputFormat : suggestedPdfFormat;
297648
297644
  }
297649
297645
  function resolveArticles(session, sourceFile, vfile2, exp, projectPath) {
297650
297646
  var _a6, _b, _c, _d2;
@@ -1,8 +0,0 @@
1
- mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mystmd_py/main.py,sha256=9gXH26VLfflzPV0t9exVsPynO-kBxUPoJGy4VEf1hNQ,1467
3
- mystmd_py/myst.cjs,sha256=aKfnZRriHDYRXm9zfVyJA0Mzo719h7AGh8uGUzgMCtg,12729100
4
- mystmd-1.1.49.dist-info/METADATA,sha256=7Fc6UDXnNsWGS1cKr3gE_Eh0kFrklaOEyQPA1fd9dPw,2969
5
- mystmd-1.1.49.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
6
- mystmd-1.1.49.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
7
- mystmd-1.1.49.dist-info/licenses/LICENSE,sha256=vgXlcTOVbxYpGiMuE9NqgguIBXAH0hJAktlaxiyZ2wg,1088
8
- mystmd-1.1.49.dist-info/RECORD,,