mystmd 1.3.26__py3-none-any.whl → 1.3.27__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.4
2
2
  Name: mystmd
3
- Version: 1.3.26
3
+ Version: 1.3.27
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
@@ -0,0 +1,9 @@
1
+ mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mystmd_py/main.py,sha256=qFAnpbiqjx7jXMMmPSVUBA7SSxuRjmr6SiRDBH0rhKQ,2767
3
+ mystmd_py/myst.cjs,sha256=NbjZ62NL2Sm-7z0wmHaBtyqoPScSWoJUk7dhzBuN1tU,13198599
4
+ mystmd_py/nodeenv.py,sha256=8KER0P-WIXM2MsRJF4vcedBKscGoc26lJKojbkDxjbg,2447
5
+ mystmd-1.3.27.dist-info/METADATA,sha256=krSyZzXd8aK2WNV_audaTMUT9dkkqM3_iv3kq-hqjVw,3020
6
+ mystmd-1.3.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ mystmd-1.3.27.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
8
+ mystmd-1.3.27.dist-info/licenses/LICENSE,sha256=4BcikqvulW5nh_MxaocO-lC7ydIX23dMbcqtNTUSxr4,1082
9
+ mystmd-1.3.27.dist-info/RECORD,,
mystmd_py/myst.cjs CHANGED
@@ -180855,50 +180855,64 @@ var require_common = __commonJS({
180855
180855
  createDebug.namespaces = namespaces;
180856
180856
  createDebug.names = [];
180857
180857
  createDebug.skips = [];
180858
- let i2;
180859
- const split2 = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
180860
- const len = split2.length;
180861
- for (i2 = 0; i2 < len; i2++) {
180862
- if (!split2[i2]) {
180863
- continue;
180858
+ const split2 = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
180859
+ for (const ns of split2) {
180860
+ if (ns[0] === "-") {
180861
+ createDebug.skips.push(ns.slice(1));
180862
+ } else {
180863
+ createDebug.names.push(ns);
180864
180864
  }
180865
- namespaces = split2[i2].replace(/\*/g, ".*?");
180866
- if (namespaces[0] === "-") {
180867
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
180865
+ }
180866
+ }
180867
+ function matchesTemplate(search4, template) {
180868
+ let searchIndex = 0;
180869
+ let templateIndex = 0;
180870
+ let starIndex = -1;
180871
+ let matchIndex = 0;
180872
+ while (searchIndex < search4.length) {
180873
+ if (templateIndex < template.length && (template[templateIndex] === search4[searchIndex] || template[templateIndex] === "*")) {
180874
+ if (template[templateIndex] === "*") {
180875
+ starIndex = templateIndex;
180876
+ matchIndex = searchIndex;
180877
+ templateIndex++;
180878
+ } else {
180879
+ searchIndex++;
180880
+ templateIndex++;
180881
+ }
180882
+ } else if (starIndex !== -1) {
180883
+ templateIndex = starIndex + 1;
180884
+ matchIndex++;
180885
+ searchIndex = matchIndex;
180868
180886
  } else {
180869
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
180887
+ return false;
180870
180888
  }
180871
180889
  }
180890
+ while (templateIndex < template.length && template[templateIndex] === "*") {
180891
+ templateIndex++;
180892
+ }
180893
+ return templateIndex === template.length;
180872
180894
  }
180873
180895
  function disable() {
180874
180896
  const namespaces = [
180875
- ...createDebug.names.map(toNamespace),
180876
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
180897
+ ...createDebug.names,
180898
+ ...createDebug.skips.map((namespace) => "-" + namespace)
180877
180899
  ].join(",");
180878
180900
  createDebug.enable("");
180879
180901
  return namespaces;
180880
180902
  }
180881
180903
  function enabled(name3) {
180882
- if (name3[name3.length - 1] === "*") {
180883
- return true;
180884
- }
180885
- let i2;
180886
- let len;
180887
- for (i2 = 0, len = createDebug.skips.length; i2 < len; i2++) {
180888
- if (createDebug.skips[i2].test(name3)) {
180904
+ for (const skip of createDebug.skips) {
180905
+ if (matchesTemplate(name3, skip)) {
180889
180906
  return false;
180890
180907
  }
180891
180908
  }
180892
- for (i2 = 0, len = createDebug.names.length; i2 < len; i2++) {
180893
- if (createDebug.names[i2].test(name3)) {
180909
+ for (const ns of createDebug.names) {
180910
+ if (matchesTemplate(name3, ns)) {
180894
180911
  return true;
180895
180912
  }
180896
180913
  }
180897
180914
  return false;
180898
180915
  }
180899
- function toNamespace(regexp) {
180900
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
180901
- }
180902
180916
  function coerce2(val) {
180903
180917
  if (val instanceof Error) {
180904
180918
  return val.stack || val.message;
@@ -181059,7 +181073,7 @@ var require_browser5 = __commonJS({
181059
181073
  function load2() {
181060
181074
  let r2;
181061
181075
  try {
181062
- r2 = exports2.storage.getItem("debug");
181076
+ r2 = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
181063
181077
  } catch (error) {
181064
181078
  }
181065
181079
  if (!r2 && typeof process !== "undefined" && "env" in process) {
@@ -193426,7 +193440,7 @@ var {
193426
193440
  } = import_index.default;
193427
193441
 
193428
193442
  // src/version.ts
193429
- var version = "1.3.26";
193443
+ var version = "1.3.27";
193430
193444
  var version_default = version;
193431
193445
 
193432
193446
  // ../myst-cli/dist/build/build.js
@@ -195189,12 +195203,15 @@ var ExportFormats;
195189
195203
  })(ExportFormats || (ExportFormats = {}));
195190
195204
 
195191
195205
  // ../myst-toc/dist/toc.js
195192
- var COMMON_ENTRY_KEYS = ["title"];
195206
+ var COMMON_ENTRY_KEYS = ["title", "hidden"];
195193
195207
  function validateCommonEntry(entry, opts) {
195194
195208
  const output2 = {};
195195
195209
  if (defined(entry.title)) {
195196
195210
  output2.title = validateString(entry.title, incrementOptions("title", opts));
195197
195211
  }
195212
+ if (defined(entry.hidden)) {
195213
+ output2.hidden = validateBoolean(entry.hidden, incrementOptions("hidden", opts));
195214
+ }
195198
195215
  return output2;
195199
195216
  }
195200
195217
  function validateFileEntry(entry, opts) {
@@ -289719,7 +289736,7 @@ var import_mime_types = __toESM(require_mime_types(), 1);
289719
289736
  var import_node_path16 = __toESM(require("path"), 1);
289720
289737
 
289721
289738
  // ../myst-cli/dist/version.js
289722
- var version2 = "1.3.26";
289739
+ var version2 = "1.3.27";
289723
289740
  var version_default2 = version2;
289724
289741
 
289725
289742
  // ../myst-cli/dist/utils/headers.js
@@ -298206,12 +298223,13 @@ function listExplicitFiles(entries2, path44) {
298206
298223
  function patternsToFileEntries(session, entries2, path44, ignore3, file, opts) {
298207
298224
  return entries2.map((entry) => {
298208
298225
  if (isPattern(entry)) {
298209
- const { pattern } = entry;
298226
+ const { pattern, ...leftover } = entry;
298210
298227
  const matches4 = globSync(pattern, { cwd: path44, nodir: true, ...opts }).filter((item) => !ignore3 || !ignore3.includes(item)).sort(comparePaths);
298211
298228
  const newEntries = matches4.map((item) => {
298212
298229
  return {
298213
298230
  file: item,
298214
- implicit: true
298231
+ implicit: true,
298232
+ ...leftover
298215
298233
  };
298216
298234
  });
298217
298235
  if (newEntries.length === 0) {
@@ -298238,15 +298256,16 @@ function pagesFromEntries(session, path44, entries2, pages = [], level = 1, page
298238
298256
  let entryLevel = level;
298239
298257
  if (isFile(entry)) {
298240
298258
  entryLevel = level < 0 ? 0 : level;
298241
- const file = resolveExtension((0, import_node_path19.resolve)(path44, entry.file), (message, errorLevel, note) => {
298259
+ const { file, ...leftover } = entry;
298260
+ const resolvedFile = resolveExtension((0, import_node_path19.resolve)(path44, file), (message, errorLevel, note) => {
298242
298261
  addWarningForFile(session, configFile, message, errorLevel, {
298243
298262
  ruleId: RuleId.tocContentsExist,
298244
298263
  note
298245
298264
  });
298246
298265
  });
298247
- if (file && import_node_fs14.default.existsSync(file) && !isDirectory(file)) {
298248
- const { slug } = fileInfo2(file, pageSlugs, { ...opts, session });
298249
- pages.push({ file, level: entryLevel, slug, implicit: entry.implicit });
298266
+ if (resolvedFile && import_node_fs14.default.existsSync(resolvedFile) && !isDirectory(resolvedFile)) {
298267
+ const { slug } = fileInfo2(resolvedFile, pageSlugs, { ...opts, session });
298268
+ pages.push({ file: resolvedFile, level: entryLevel, slug, ...leftover });
298250
298269
  }
298251
298270
  } else if (isURL(entry)) {
298252
298271
  addWarningForFile(session, configFile, `URLs in table of contents are not yet supported: ${entry.url}`, "warn", {
@@ -307748,8 +307767,10 @@ var typstMacros = {
307748
307767
  gets: "arrow.l",
307749
307768
  rightharpoonup: "harpoon.rt",
307750
307769
  rightharpoondown: "harpoon.rb",
307770
+ rightleftharpoons: "harpoons.rtlb",
307751
307771
  leftharpoonup: "harpoon.lt",
307752
307772
  leftharpoondown: "harpoon.lb",
307773
+ leftrightharpoons: "harpoons.ltrb",
307753
307774
  infin: "infinity",
307754
307775
  // This is a mathjax only thing, https://docs.mathjax.org/en/v2.7-latest/tex.html#i
307755
307776
  infty: "infinity",
@@ -1,9 +0,0 @@
1
- mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mystmd_py/main.py,sha256=qFAnpbiqjx7jXMMmPSVUBA7SSxuRjmr6SiRDBH0rhKQ,2767
3
- mystmd_py/myst.cjs,sha256=gmXJ5DgBvXF2I68guR9c6DVom3wfQR-AKirx7tUb7H4,13197796
4
- mystmd_py/nodeenv.py,sha256=8KER0P-WIXM2MsRJF4vcedBKscGoc26lJKojbkDxjbg,2447
5
- mystmd-1.3.26.dist-info/METADATA,sha256=7HYuHX7K1cwQ-5uKVaZMu0cDmAPECmu04gDU4KtiTfE,3020
6
- mystmd-1.3.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- mystmd-1.3.26.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
8
- mystmd-1.3.26.dist-info/licenses/LICENSE,sha256=4BcikqvulW5nh_MxaocO-lC7ydIX23dMbcqtNTUSxr4,1082
9
- mystmd-1.3.26.dist-info/RECORD,,