mystmd 1.1.35__tar.gz → 1.1.36__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.1
2
2
  Name: mystmd
3
- Version: 1.1.35
3
+ Version: 1.1.36
4
4
  Summary: Command line tools for MyST Markdown
5
5
  Home-page: https://github.com/executablebooks/mystmd
6
6
  Author: Franklin Koch
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mystmd
3
- Version: 1.1.35
3
+ Version: 1.1.36
4
4
  Summary: Command line tools for MyST Markdown
5
5
  Home-page: https://github.com/executablebooks/mystmd
6
6
  Author: Franklin Koch
@@ -199098,7 +199098,7 @@ var {
199098
199098
  } = import_index.default;
199099
199099
 
199100
199100
  // src/version.ts
199101
- var version = "1.1.35";
199101
+ var version = "1.1.36";
199102
199102
  var version_default = version;
199103
199103
 
199104
199104
  // ../myst-cli/dist/build/build.js
@@ -283846,15 +283846,10 @@ var refRole = {
283846
283846
  const match3 = REF_PATTERN.exec(body3);
283847
283847
  const [, modified, rawLabel] = match3 !== null && match3 !== void 0 ? match3 : [];
283848
283848
  const { label, identifier } = normalizeLabel(rawLabel !== null && rawLabel !== void 0 ? rawLabel : body3) || {};
283849
- return [
283850
- {
283851
- type: "crossReference",
283852
- kind: data.name,
283853
- identifier,
283854
- label,
283855
- children: modified ? [{ type: "text", value: modified.trim() }] : void 0
283856
- }
283857
- ];
283849
+ const crossRef = { type: "crossReference", kind: data.name, identifier, label };
283850
+ if (modified)
283851
+ crossRef.children = [{ type: "text", value: modified.trim() }];
283852
+ return [crossRef];
283858
283853
  }
283859
283854
  };
283860
283855
 
@@ -283876,13 +283871,10 @@ var docRole = {
283876
283871
  note: `For {doc}\`${body3}\` use [${modified || ""}](${url})`,
283877
283872
  ruleId: RuleId.roleBodyCorrect
283878
283873
  });
283879
- return [
283880
- {
283881
- type: "link",
283882
- url,
283883
- children: modified ? [{ type: "text", value: modified.trim() }] : void 0
283884
- }
283885
- ];
283874
+ const link4 = { type: "link", url };
283875
+ if (modified)
283876
+ link4.children = [{ type: "text", value: modified.trim() }];
283877
+ return [link4];
283886
283878
  }
283887
283879
  };
283888
283880
 
@@ -283899,15 +283891,15 @@ var downloadRole = {
283899
283891
  const match3 = REF_PATTERN3.exec(body3);
283900
283892
  const [, modified, rawLabel] = match3 !== null && match3 !== void 0 ? match3 : [];
283901
283893
  const url = rawLabel !== null && rawLabel !== void 0 ? rawLabel : body3;
283902
- return [
283903
- {
283904
- type: "link",
283905
- url,
283906
- children: modified ? [{ type: "text", value: modified.trim() }] : void 0,
283907
- static: true
283908
- // Indicate that this should be treated as a static download
283909
- }
283910
- ];
283894
+ const link4 = {
283895
+ type: "link",
283896
+ url,
283897
+ static: true
283898
+ // Indicate that this should be treated as a static download
283899
+ };
283900
+ if (modified)
283901
+ link4.children = [{ type: "text", value: modified.trim() }];
283902
+ return [link4];
283911
283903
  }
283912
283904
  };
283913
283905
 
@@ -283932,14 +283924,14 @@ var termRole = {
283932
283924
  ruleId: RuleId.roleBodyCorrect
283933
283925
  });
283934
283926
  }
283935
- return [
283936
- {
283937
- type: "crossReference",
283938
- label,
283939
- identifier: `term-${identifier}`,
283940
- children: modified ? [{ type: "text", value: modified.trim() }] : void 0
283941
- }
283942
- ];
283927
+ const crossRef = {
283928
+ type: "crossReference",
283929
+ label,
283930
+ identifier: `term-${identifier}`
283931
+ };
283932
+ if (modified)
283933
+ crossRef.children = [{ type: "text", value: modified.trim() }];
283934
+ return [crossRef];
283943
283935
  }
283944
283936
  };
283945
283937
 
@@ -285744,7 +285736,7 @@ var import_node_path15 = __toESM(require("path"), 1);
285744
285736
  var import_nbtx = __toESM(require_cjs2(), 1);
285745
285737
 
285746
285738
  // ../myst-cli/dist/version.js
285747
- var version2 = "1.1.35";
285739
+ var version2 = "1.1.36";
285748
285740
  var version_default2 = version2;
285749
285741
 
285750
285742
  // ../myst-cli/dist/utils/headers.js
@@ -294079,13 +294071,13 @@ var KIND_TO_EXT = {
294079
294071
  };
294080
294072
  var DEFAULT_TEMPLATES = {
294081
294073
  tex: "tex/myst/curvenote",
294082
- typst: "typst/myst/default",
294074
+ typst: "typst/myst/lapreprint-typst",
294083
294075
  docx: "docx/myst/default",
294084
294076
  site: "site/myst/book-theme"
294085
294077
  };
294086
294078
  var PARTIAL_TEMPLATE_REGEX = /^[a-zA-Z0-9_-]+$/;
294087
294079
  var TEMPLATE_REGEX = /^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/;
294088
- var FULL_TEMPLATE_REGEX = /^(site|tex|docx)\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/;
294080
+ var FULL_TEMPLATE_REGEX = /^(site|tex|typst|docx)\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/;
294089
294081
  function normalizeTemplateName(opts) {
294090
294082
  const { template } = opts;
294091
294083
  const kind = opts.kind;
@@ -297784,7 +297776,7 @@ function renderImports(kind, output2, imports, packages, preamble) {
297784
297776
  }
297785
297777
 
297786
297778
  // ../jtex/dist/version.js
297787
- var version3 = "1.0.11";
297779
+ var version3 = "1.0.12";
297788
297780
  var version_default3 = version3;
297789
297781
 
297790
297782
  // ../jtex/dist/jtex.js
@@ -316861,19 +316853,20 @@ function makeStartCLI(program3) {
316861
316853
  // src/templates.ts
316862
316854
  var import_node_fs39 = __toESM(require("fs"), 1);
316863
316855
  var import_node_path57 = require("path");
316864
- var allTemplates = [TemplateKind.tex, TemplateKind.docx, TemplateKind.site];
316856
+ var allTemplates = [TemplateKind.tex, TemplateKind.typst, TemplateKind.docx, TemplateKind.site];
316865
316857
  function getKindFromName(name2) {
316866
316858
  var _a6;
316867
- return ((_a6 = name2.match(/^(tex|docx|site)\//)) == null ? void 0 : _a6[1]) ?? void 0;
316859
+ return ((_a6 = name2.match(/^(tex|typst|docx|site)\//)) == null ? void 0 : _a6[1]) ?? void 0;
316868
316860
  }
316869
316861
  function getKind(session, kinds) {
316870
316862
  if (!kinds)
316871
316863
  return void 0;
316872
- const { pdf, tex, docx, site } = kinds;
316864
+ const { pdf, tex, typst, docx, site } = kinds;
316873
316865
  if (pdf)
316874
- session.log.warn('PDF templates are currently using "tex"');
316866
+ session.log.warn('PDF templates may use either "tex" or "typst"');
316875
316867
  const flags = {
316876
316868
  [TemplateKind.tex]: (tex || pdf) ?? false,
316869
+ [TemplateKind.typst]: (typst || pdf) ?? false,
316877
316870
  [TemplateKind.docx]: docx ?? false,
316878
316871
  [TemplateKind.site]: site ?? false
316879
316872
  };
@@ -316922,8 +316915,8 @@ async function listTemplatesCLI(session, name2, opts) {
316922
316915
  template.id = name2;
316923
316916
  session.log.debug(toc(`Found ${template.id} template in %s`));
316924
316917
  session.log.info(
316925
- `${source_default6.bold.green((template.title ?? "").padEnd(25))}${source_default6.bold.blueBright(
316926
- template.id.replace(/^(tex|site|docx)\//, "").replace(/^myst\//, "")
316918
+ `${source_default6.bold.green((template.title ?? "").padEnd(30))}${source_default6.bold.blueBright(
316919
+ template.id.replace(/^(tex|typst|site|docx)\//, "").replace(/^myst\//, "")
316927
316920
  )}`
316928
316921
  );
316929
316922
  session.log.info(
@@ -316982,8 +316975,8 @@ Options:`));
316982
316975
  var _a7;
316983
316976
  session.log.info(
316984
316977
  `
316985
- ${source_default6.bold.green((template.title ?? "").padEnd(25))}${source_default6.bold.blueBright(
316986
- template.id.replace(/^tex\//, "").replace(/^myst\//, "")
316978
+ ${source_default6.bold.green((template.title ?? "").padEnd(30))}${source_default6.bold.blueBright(
316979
+ template.id.replace(/^(tex|typst|site|docx)\//, "").replace(/^myst\//, "")
316987
316980
  )}
316988
316981
  Description: ${source_default6.dim(template.description ?? "")}
316989
316982
  Tags: ${source_default6.dim(
@@ -316993,11 +316986,11 @@ Tags: ${source_default6.dim(
316993
316986
  });
316994
316987
  }
316995
316988
  function makeDownloadCLI(program3) {
316996
- const command = new Command("download").description("Download a public template to a path").argument("<template>", "The template URL or name").argument("[path]", "A folder to download and unzip the template to").addOption(makePdfOption("Download PDF template")).addOption(makeTexOption("Download LaTeX template")).addOption(makeDocxOption("Download Docx template")).addOption(makeSiteOption("Download Site template")).addOption(makeForceOption()).action(clirun2(Session, downloadTemplateCLI, program3));
316989
+ const command = new Command("download").description("Download a public template to a path").argument("<template>", "The template URL or name").argument("[path]", "A folder to download and unzip the template to").addOption(makePdfOption("Download PDF template")).addOption(makeTexOption("Download LaTeX template")).addOption(makeTypstOption("Download Typst template")).addOption(makeDocxOption("Download Docx template")).addOption(makeSiteOption("Download Site template")).addOption(makeForceOption()).action(clirun2(Session, downloadTemplateCLI, program3));
316997
316990
  return command;
316998
316991
  }
316999
316992
  function makeListCLI(program3) {
317000
- const command = new Command("list").description("List, filter or lookup details on public templates").argument("[name]", "The optional name to list about a specific template").addOption(makePdfOption("List PDF templates")).addOption(makeTexOption("List LaTeX templates")).addOption(makeDocxOption("List Docx templates")).addOption(makeSiteOption("List Site templates")).option(
316993
+ const command = new Command("list").description("List, filter or lookup details on public templates").argument("[name]", "The optional name to list about a specific template").addOption(makePdfOption("List PDF templates")).addOption(makeTexOption("List LaTeX templates")).addOption(makeTypstOption("List Typst templates")).addOption(makeDocxOption("List Docx templates")).addOption(makeSiteOption("List Site templates")).option(
317001
316994
  "--tag <tag>",
317002
316995
  "Any tags to filter the list by multiple tags can be joined with a comma."
317003
316996
  ).action(clirun2(Session, listTemplatesCLI, program3));
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = mystmd
3
- version = 1.1.35
3
+ version = 1.1.36
4
4
  description = Command line tools for MyST Markdown
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes