@doenet/v06-to-v07 0.7.25-dev.525 → 0.7.25-dev.528
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.
- package/{index-eVT1V_yI.js → index-UGhg3-G5.js} +14 -4
- package/{index-eVT1V_yI.js.map → index-UGhg3-G5.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{sha256-DT5xJ2Hv-CPJuqkA--DJHvVYgE.js → sha256-DT5xJ2Hv-DyFaq6y_-C83kSVnY.js} +2 -2
- package/{sha256-DT5xJ2Hv-CPJuqkA--DJHvVYgE.js.map → sha256-DT5xJ2Hv-DyFaq6y_-C83kSVnY.js.map} +1 -1
|
@@ -46770,7 +46770,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
46770
46770
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
46771
46771
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
46772
46772
|
} catch (e22) {
|
|
46773
|
-
const sha256 = (await import("./sha256-DT5xJ2Hv-
|
|
46773
|
+
const sha256 = (await import("./sha256-DT5xJ2Hv-DyFaq6y_-C83kSVnY.js").then((n2) => n2.s)).default;
|
|
46774
46774
|
digest = (data2) => sha256(data2, {
|
|
46775
46775
|
asBytes: true
|
|
46776
46776
|
});
|
|
@@ -51961,6 +51961,12 @@ function removeRepeatedSuperSubScripts(latex) {
|
|
|
51961
51961
|
removeRepScript("_");
|
|
51962
51962
|
return newLatex;
|
|
51963
51963
|
}
|
|
51964
|
+
function stripAlignmentMarkers(latex) {
|
|
51965
|
+
return latex.replace(
|
|
51966
|
+
/\\\\|\\&|\\amp(?![a-zA-Z])|&/g,
|
|
51967
|
+
(match2) => match2 === "\\\\" || match2 === "\\&" ? match2 : ""
|
|
51968
|
+
);
|
|
51969
|
+
}
|
|
51964
51970
|
const TimerLabels = {
|
|
51965
51971
|
autoSubmit: "auto-submit answers",
|
|
51966
51972
|
scheduledSaveState: "scheduled saveState",
|
|
@@ -84957,7 +84963,9 @@ class Md extends InlineComponent {
|
|
|
84957
84963
|
try {
|
|
84958
84964
|
expressionText = convertLatexWithBlanks(
|
|
84959
84965
|
dependencyValues.latex,
|
|
84960
|
-
(latex) =>
|
|
84966
|
+
(latex) => stripAlignmentMarkers(
|
|
84967
|
+
latex.replaceAll("\\notag", "")
|
|
84968
|
+
).split("\\\\").map((x2) => {
|
|
84961
84969
|
let result2 = x2.match(/\\tag\{(\w+)\}(.*)/);
|
|
84962
84970
|
if (result2) {
|
|
84963
84971
|
x2 = result2[2];
|
|
@@ -120482,7 +120490,9 @@ function describeAsMathBlank({ dependencyValues, componentIdx }) {
|
|
|
120482
120490
|
{ ordinal, total: embedded.length },
|
|
120483
120491
|
`blank ${ordinal} of ${embedded.length}`
|
|
120484
120492
|
) : plainBlank;
|
|
120485
|
-
const withPlaceholders = (
|
|
120493
|
+
const withPlaceholders = stripAlignmentMarkers(
|
|
120494
|
+
math2.stateValues.latexTemplate ?? ""
|
|
120495
|
+
).replace(MATH_INPUT_SLOT_PATTERN, BLANK_PLACEHOLDER);
|
|
120486
120496
|
const described = latexToText(withPlaceholders).trim();
|
|
120487
120497
|
let position2 = 0;
|
|
120488
120498
|
const named = described.replaceAll(
|
|
@@ -238822,4 +238832,4 @@ export {
|
|
|
238822
238832
|
getDefaultExportFromCjs$1 as g,
|
|
238823
238833
|
updateSyntaxFromV06toV07 as u
|
|
238824
238834
|
};
|
|
238825
|
-
//# sourceMappingURL=index-
|
|
238835
|
+
//# sourceMappingURL=index-UGhg3-G5.js.map
|