mystmd 1.1.32__tar.gz → 1.1.34__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.
- {mystmd-1.1.32/mystmd.egg-info → mystmd-1.1.34}/PKG-INFO +1 -1
- {mystmd-1.1.32 → mystmd-1.1.34/mystmd.egg-info}/PKG-INFO +1 -1
- {mystmd-1.1.32 → mystmd-1.1.34}/mystmd_py/myst.cjs +60 -39
- {mystmd-1.1.32 → mystmd-1.1.34}/setup.cfg +1 -1
- {mystmd-1.1.32 → mystmd-1.1.34}/LICENSE +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/MANIFEST.in +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/README.md +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/mystmd.egg-info/SOURCES.txt +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/mystmd.egg-info/dependency_links.txt +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/mystmd.egg-info/entry_points.txt +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/mystmd.egg-info/top_level.txt +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/mystmd_py/__init__.py +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/mystmd_py/main.py +0 -0
- {mystmd-1.1.32 → mystmd-1.1.34}/setup.py +0 -0
@@ -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.34";
|
199102
199102
|
var version_default = version;
|
199103
199103
|
|
199104
199104
|
// ../myst-cli/dist/build/build.js
|
@@ -202982,32 +202982,49 @@ function licensesToString(licenses2) {
|
|
202982
202982
|
}
|
202983
202983
|
|
202984
202984
|
// ../myst-frontmatter/dist/numbering/validators.js
|
202985
|
-
var
|
202986
|
-
|
202987
|
-
|
202988
|
-
|
202989
|
-
"
|
202990
|
-
"
|
202991
|
-
"
|
202992
|
-
"
|
202993
|
-
"
|
202994
|
-
"
|
202995
|
-
"
|
202996
|
-
"
|
202997
|
-
|
202985
|
+
var NUMBERING_OPTIONS = ["enumerator", "headings"];
|
202986
|
+
var HEADING_KEYS = ["heading_1", "heading_2", "heading_3", "heading_4", "heading_5", "heading_6"];
|
202987
|
+
var NUMBERING_KEYS = ["figure", "equation", "table", "code", ...HEADING_KEYS];
|
202988
|
+
var NUMBERING_ALIAS = {
|
202989
|
+
sections: "headings",
|
202990
|
+
h1: "heading_1",
|
202991
|
+
h2: "heading_2",
|
202992
|
+
h3: "heading_3",
|
202993
|
+
h4: "heading_4",
|
202994
|
+
h5: "heading_5",
|
202995
|
+
h6: "heading_6",
|
202996
|
+
heading1: "heading_1",
|
202997
|
+
heading2: "heading_2",
|
202998
|
+
heading3: "heading_3",
|
202999
|
+
heading4: "heading_4",
|
203000
|
+
heading5: "heading_5",
|
203001
|
+
heading6: "heading_6"
|
203002
|
+
};
|
202998
203003
|
function validateNumbering(input3, opts) {
|
202999
|
-
const value = validateObjectKeys(input3, { optional: NUMBERING_KEYS }, opts);
|
203004
|
+
const value = validateObjectKeys(input3, { optional: [...NUMBERING_KEYS, ...NUMBERING_OPTIONS], alias: NUMBERING_ALIAS }, { ...opts, suppressWarnings: true, keepExtraKeys: true });
|
203000
203005
|
if (value === void 0)
|
203001
203006
|
return void 0;
|
203002
203007
|
const output2 = {};
|
203003
203008
|
if (defined(value.enumerator)) {
|
203004
203009
|
output2.enumerator = validateString(value.enumerator, incrementOptions("enumerator", opts));
|
203005
203010
|
}
|
203006
|
-
|
203011
|
+
if (defined(value.headings)) {
|
203012
|
+
const headings = validateBoolean(value.headings, incrementOptions("headings", opts));
|
203013
|
+
HEADING_KEYS.forEach((headingKey) => {
|
203014
|
+
if (headings && !defined(value[headingKey])) {
|
203015
|
+
value[headingKey] = true;
|
203016
|
+
}
|
203017
|
+
});
|
203018
|
+
}
|
203019
|
+
Object.keys(value).filter((key2) => !NUMBERING_OPTIONS.includes(key2)).forEach((key2) => {
|
203007
203020
|
if (defined(value[key2])) {
|
203008
|
-
|
203021
|
+
const bool2 = validateBoolean(value[key2], incrementOptions(key2, opts));
|
203022
|
+
if (defined(bool2))
|
203023
|
+
output2[key2] = bool2;
|
203009
203024
|
}
|
203010
203025
|
});
|
203026
|
+
if (Object.keys(output2).length === 0)
|
203027
|
+
return void 0;
|
203011
203028
|
return output2;
|
203012
203029
|
}
|
203013
203030
|
|
@@ -203279,7 +203296,7 @@ function validateJupyterServerOptions(input3, opts) {
|
|
203279
203296
|
}
|
203280
203297
|
|
203281
203298
|
// ../myst-frontmatter/dist/settings/validatorsMystToTex.js
|
203282
|
-
var MYST_TO_TEX_SETTINGS = ["codeStyle"];
|
203299
|
+
var MYST_TO_TEX_SETTINGS = ["codeStyle", "beamer"];
|
203283
203300
|
var MYST_TO_TEX_SETTINGS_ALIAS = {
|
203284
203301
|
code_style: "codeStyle"
|
203285
203302
|
};
|
@@ -203296,6 +203313,11 @@ function validateMystToTexSettings(value, opts) {
|
|
203296
203313
|
if (codeStyle)
|
203297
203314
|
output2.codeStyle = codeStyle;
|
203298
203315
|
}
|
203316
|
+
if (defined(settings.beamer)) {
|
203317
|
+
const beamer = validateBoolean(settings.beamer, incrementOptions("beamer", opts));
|
203318
|
+
if (beamer != null)
|
203319
|
+
output2.beamer = beamer;
|
203320
|
+
}
|
203299
203321
|
if (Object.keys(output2).length === 0)
|
203300
203322
|
return void 0;
|
203301
203323
|
return output2;
|
@@ -241643,10 +241665,10 @@ function containerChildrenTransform(tree, vfile2) {
|
|
241643
241665
|
if (placeholderImage)
|
241644
241666
|
children.push(placeholderImage);
|
241645
241667
|
if (container4.kind === "table") {
|
241646
|
-
if (legend2)
|
241647
|
-
children.unshift(legend2);
|
241648
241668
|
if (caption3)
|
241649
241669
|
children.unshift(caption3);
|
241670
|
+
if (legend2)
|
241671
|
+
children.push(legend2);
|
241650
241672
|
} else {
|
241651
241673
|
if (caption3)
|
241652
241674
|
children.push(caption3);
|
@@ -241997,15 +242019,10 @@ var enumerateTargetsPlugin = (opts) => (tree) => {
|
|
241997
242019
|
function getCaptionLabel(kind, subcontainer) {
|
241998
242020
|
if (subcontainer)
|
241999
242021
|
return `(%s)`;
|
242000
|
-
|
242001
|
-
|
242002
|
-
|
242003
|
-
|
242004
|
-
return `Program %s:`;
|
242005
|
-
case "figure":
|
242006
|
-
default:
|
242007
|
-
return `Figure %s:`;
|
242008
|
-
}
|
242022
|
+
if (!kind)
|
242023
|
+
return "Figure\xA0%s:";
|
242024
|
+
const template = getDefaultNumberedReferenceLabel(kind);
|
242025
|
+
return `${template}:`;
|
242009
242026
|
}
|
242010
242027
|
function addContainerCaptionNumbersTransform(tree, file, opts) {
|
242011
242028
|
const containers = selectAll("container", tree);
|
@@ -282982,6 +282999,10 @@ var figureDirective = {
|
|
282982
282999
|
type: Boolean,
|
282983
283000
|
doc: "Disallow implicit subfigure creation from child nodes",
|
282984
283001
|
alias: ["no-subfig", "no-subfigure"]
|
283002
|
+
},
|
283003
|
+
kind: {
|
283004
|
+
type: String,
|
283005
|
+
doc: 'Override the figures "kind", which changes the enumeration to start counting independently for that kind. For example, `kind: "example"`. The default enumeration and referencing will be the capitalized `kind` followed by a number (e.g. "Example 1").'
|
282985
283006
|
}
|
282986
283007
|
},
|
282987
283008
|
body: {
|
@@ -282989,7 +283010,7 @@ var figureDirective = {
|
|
282989
283010
|
doc: "If an argument is provided to the figure directive, the body will be the figure caption. You may also omit the figure directive argument and provide images in the body of the figure, these will be parsed into sub figures."
|
282990
283011
|
},
|
282991
283012
|
run(data) {
|
282992
|
-
var _a6, _b, _c, _d2, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
283013
|
+
var _a6, _b, _c, _d2, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
282993
283014
|
const children = [];
|
282994
283015
|
if (data.arg) {
|
282995
283016
|
children.push({
|
@@ -283021,13 +283042,13 @@ var figureDirective = {
|
|
283021
283042
|
const { label, identifier } = normalizeLabel((_m = data.options) === null || _m === void 0 ? void 0 : _m.label) || {};
|
283022
283043
|
const container4 = {
|
283023
283044
|
type: "container",
|
283024
|
-
kind: "figure",
|
283045
|
+
kind: ((_o = data.options) === null || _o === void 0 ? void 0 : _o.kind) || "figure",
|
283025
283046
|
identifier,
|
283026
283047
|
label,
|
283027
|
-
class: (
|
283048
|
+
class: (_p = data.options) === null || _p === void 0 ? void 0 : _p.class,
|
283028
283049
|
children
|
283029
283050
|
};
|
283030
|
-
if ((
|
283051
|
+
if ((_q = data.options) === null || _q === void 0 ? void 0 : _q["no-subfigures"]) {
|
283031
283052
|
container4.noSubcontainers = true;
|
283032
283053
|
}
|
283033
283054
|
return [container4];
|
@@ -285704,7 +285725,7 @@ var import_node_path15 = __toESM(require("path"), 1);
|
|
285704
285725
|
var import_nbtx = __toESM(require_cjs2(), 1);
|
285705
285726
|
|
285706
285727
|
// ../myst-cli/dist/version.js
|
285707
|
-
var version2 = "1.1.
|
285728
|
+
var version2 = "1.1.34";
|
285708
285729
|
var version_default2 = version2;
|
285709
285730
|
|
285710
285731
|
// ../myst-cli/dist/utils/headers.js
|
@@ -286960,10 +286981,10 @@ function prepareToWrite(frontmatter) {
|
|
286960
286981
|
return { ...frontmatter };
|
286961
286982
|
return { ...frontmatter, license: licensesToString(frontmatter.license) };
|
286962
286983
|
}
|
286963
|
-
async function getRawFrontmatterFromFile(session, file) {
|
286984
|
+
async function getRawFrontmatterFromFile(session, file, projectPath) {
|
286964
286985
|
const cache = castSession(session);
|
286965
286986
|
if (!cache.$getMdast(file))
|
286966
|
-
await loadFile(session, file);
|
286987
|
+
await loadFile(session, file, projectPath);
|
286967
286988
|
const result = cache.$getMdast(file);
|
286968
286989
|
if (!result || !result.pre)
|
286969
286990
|
return void 0;
|
@@ -295063,7 +295084,7 @@ async function prepareExportOptions(session, sourceFile, formats, projectPath, o
|
|
295063
295084
|
if (projectPath && sourceFile === selectors_exports.selectLocalConfigFile(state, projectPath)) {
|
295064
295085
|
rawFrontmatter = selectors_exports.selectLocalProjectConfig(state, projectPath);
|
295065
295086
|
} else {
|
295066
|
-
rawFrontmatter = await getRawFrontmatterFromFile(session, sourceFile);
|
295087
|
+
rawFrontmatter = await getRawFrontmatterFromFile(session, sourceFile, projectPath);
|
295067
295088
|
}
|
295068
295089
|
let exportOptions = getExportListFromRawFrontmatter(session, formats, rawFrontmatter, sourceFile);
|
295069
295090
|
if (exportOptions.length === 0 && formats.length && opts.force) {
|
@@ -302933,7 +302954,7 @@ async function copyDependentFiles(session, sourceFile, projectPath, mecaFolder,
|
|
302933
302954
|
var _a6;
|
302934
302955
|
const cache = castSession(session);
|
302935
302956
|
if (!cache.$getMdast(sourceFile)) {
|
302936
|
-
await loadFile(session, sourceFile);
|
302957
|
+
await loadFile(session, sourceFile, projectPath);
|
302937
302958
|
}
|
302938
302959
|
const pre2 = (_a6 = cache.$getMdast(sourceFile)) === null || _a6 === void 0 ? void 0 : _a6.pre;
|
302939
302960
|
if (!pre2)
|
@@ -302958,7 +302979,7 @@ function writeMecaManifest(manifestItems, mecaFolder) {
|
|
302958
302979
|
async function runMecaExport(session, exportOptions, projectPath, clean3, extraLinkTransformers) {
|
302959
302980
|
const toc = tic();
|
302960
302981
|
const { output: output2, articles } = exportOptions;
|
302961
|
-
const article = articles[0];
|
302982
|
+
const article = articles === null || articles === void 0 ? void 0 : articles[0];
|
302962
302983
|
const vfile2 = new VFile();
|
302963
302984
|
vfile2.path = output2;
|
302964
302985
|
const fileCopyErrorLogFn = (m2) => {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|