@doenet/v06-to-v07 0.7.25-dev.525 → 0.7.25-dev.526

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.
@@ -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-CPJuqkA--DJHvVYgE.js").then((n2) => n2.s)).default;
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) => latex.replaceAll("\\notag", "").replaceAll("\\amp", "").split("\\\\").map((x2) => {
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 = (math2.stateValues.latexTemplate ?? "").replace(/\\amp(?![a-zA-Z])/g, "").replace(new RegExp("(?<!\\\\)&", "g"), "").replace(MATH_INPUT_SLOT_PATTERN, BLANK_PLACEHOLDER);
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-eVT1V_yI.js.map
238835
+ //# sourceMappingURL=index-UGhg3-G5.js.map