mystmd 1.1.35__py3-none-any.whl → 1.1.36__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.
- {mystmd-1.1.35.dist-info → mystmd-1.1.36.dist-info}/METADATA +1 -1
- mystmd-1.1.36.dist-info/RECORD +9 -0
- mystmd_py/myst.cjs +41 -48
- mystmd-1.1.35.dist-info/RECORD +0 -9
- {mystmd-1.1.35.dist-info → mystmd-1.1.36.dist-info}/LICENSE +0 -0
- {mystmd-1.1.35.dist-info → mystmd-1.1.36.dist-info}/WHEEL +0 -0
- {mystmd-1.1.35.dist-info → mystmd-1.1.36.dist-info}/entry_points.txt +0 -0
- {mystmd-1.1.35.dist-info → mystmd-1.1.36.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
mystmd_py/main.py,sha256=_dRwNvYQ3xult25BmsZgXMWe1asD_wuSW8JeWV-S3c0,1411
|
3
|
+
mystmd_py/myst.cjs,sha256=_nuDWYu_fHscxMpCVzs1sS8v7B_27xuf0R_gNQgDE30,13207642
|
4
|
+
mystmd-1.1.36.dist-info/LICENSE,sha256=vgXlcTOVbxYpGiMuE9NqgguIBXAH0hJAktlaxiyZ2wg,1088
|
5
|
+
mystmd-1.1.36.dist-info/METADATA,sha256=oTtt-jXGgCj1AIiEXxHdeVK-CJiET0KGVUnZTt8Gxqw,2601
|
6
|
+
mystmd-1.1.36.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
7
|
+
mystmd-1.1.36.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
|
8
|
+
mystmd-1.1.36.dist-info/top_level.txt,sha256=__Xz3ZzAj4SsfBUP5OFexvriJM7gBwu8L2r3TL6UXKE,10
|
9
|
+
mystmd-1.1.36.dist-info/RECORD,,
|
mystmd_py/myst.cjs
CHANGED
@@ -199098,7 +199098,7 @@ var {
|
|
199098
199098
|
} = import_index.default;
|
199099
199099
|
|
199100
199100
|
// src/version.ts
|
199101
|
-
var version = "1.1.
|
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
|
-
|
283850
|
-
|
283851
|
-
|
283852
|
-
|
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
|
-
|
283880
|
-
|
283881
|
-
|
283882
|
-
|
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
|
-
|
283903
|
-
|
283904
|
-
|
283905
|
-
|
283906
|
-
|
283907
|
-
|
283908
|
-
|
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
|
-
|
283936
|
-
|
283937
|
-
|
283938
|
-
|
283939
|
-
|
283940
|
-
|
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.
|
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/
|
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.
|
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
|
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(
|
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(
|
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));
|
mystmd-1.1.35.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
mystmd_py/main.py,sha256=_dRwNvYQ3xult25BmsZgXMWe1asD_wuSW8JeWV-S3c0,1411
|
3
|
-
mystmd_py/myst.cjs,sha256=9aW2QudqWXMxg4lFi9ssK6j2jamWiacSQ6xF7ZUgBis,13207404
|
4
|
-
mystmd-1.1.35.dist-info/LICENSE,sha256=vgXlcTOVbxYpGiMuE9NqgguIBXAH0hJAktlaxiyZ2wg,1088
|
5
|
-
mystmd-1.1.35.dist-info/METADATA,sha256=WkDLAut-lcYxkKEVnQghhneQeBA1ubwUnDsTun75ETk,2601
|
6
|
-
mystmd-1.1.35.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
7
|
-
mystmd-1.1.35.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
|
8
|
-
mystmd-1.1.35.dist-info/top_level.txt,sha256=__Xz3ZzAj4SsfBUP5OFexvriJM7gBwu8L2r3TL6UXKE,10
|
9
|
-
mystmd-1.1.35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|