math-exercises 3.0.139 → 3.0.140

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.
@@ -21,10 +21,10 @@ const getPropositions = (_, { answer }) => {
21
21
  const propositions = [];
22
22
  ["Oui", "Non"].forEach((strYN) => {
23
23
  if (strYN === answer) {
24
- addValidProp(propositions, strYN);
24
+ addValidProp(propositions, strYN, "raw");
25
25
  }
26
26
  else {
27
- tryToAddWrongProp(propositions, strYN);
27
+ tryToAddWrongProp(propositions, strYN, "raw");
28
28
  }
29
29
  });
30
30
  return propositions;
@@ -264,7 +264,7 @@ const getQuestionFromIdentifiers = (identifiers, opts) => {
264
264
  answer: getAnswer(identifiers, opts),
265
265
  instruction: getInstruction(identifiers, opts),
266
266
  keys: getKeys(identifiers, opts),
267
- answerFormat: "tex",
267
+ answerFormat: "raw",
268
268
  identifiers,
269
269
  hint: getHint(identifiers, opts),
270
270
  correction: getCorrection(identifiers, opts),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.139",
4
+ "version": "3.0.140",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [