pxt-core 12.2.33 → 12.2.34

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.
@@ -919,7 +919,7 @@ var pxt;
919
919
  const rawLang = typeof (token === null || token === void 0 ? void 0 : token.lang) === "string" ? token.lang.trim() : "";
920
920
  const normalizedLang = htmlQuote(rawLang.toLowerCase());
921
921
  const text = typeof (token === null || token === void 0 ? void 0 : token.text) === "string" ? token.text : "";
922
- const escaped = (token === null || token === void 0 ? void 0 : token.escaped) !== false;
922
+ const escaped = !!(token === null || token === void 0 ? void 0 : token.escaped) !== false;
923
923
  const code = escaped ? text : htmlQuote(text);
924
924
  const classAttr = normalizedLang ? ` class="lang-${normalizedLang}"` : "";
925
925
  return `<pre><code${classAttr}>${code}</code></pre>`;
package/built/pxt.js CHANGED
@@ -107129,7 +107129,7 @@ var pxt;
107129
107129
  const rawLang = typeof (token === null || token === void 0 ? void 0 : token.lang) === "string" ? token.lang.trim() : "";
107130
107130
  const normalizedLang = htmlQuote(rawLang.toLowerCase());
107131
107131
  const text = typeof (token === null || token === void 0 ? void 0 : token.text) === "string" ? token.text : "";
107132
- const escaped = (token === null || token === void 0 ? void 0 : token.escaped) !== false;
107132
+ const escaped = !!(token === null || token === void 0 ? void 0 : token.escaped) !== false;
107133
107133
  const code = escaped ? text : htmlQuote(text);
107134
107134
  const classAttr = normalizedLang ? ` class="lang-${normalizedLang}"` : "";
107135
107135
  return `<pre><code${classAttr}>${code}</code></pre>`;
package/built/pxtlib.js CHANGED
@@ -9408,7 +9408,7 @@ var pxt;
9408
9408
  const rawLang = typeof (token === null || token === void 0 ? void 0 : token.lang) === "string" ? token.lang.trim() : "";
9409
9409
  const normalizedLang = htmlQuote(rawLang.toLowerCase());
9410
9410
  const text = typeof (token === null || token === void 0 ? void 0 : token.text) === "string" ? token.text : "";
9411
- const escaped = (token === null || token === void 0 ? void 0 : token.escaped) !== false;
9411
+ const escaped = !!(token === null || token === void 0 ? void 0 : token.escaped) !== false;
9412
9412
  const code = escaped ? text : htmlQuote(text);
9413
9413
  const classAttr = normalizedLang ? ` class="lang-${normalizedLang}"` : "";
9414
9414
  return `<pre><code${classAttr}>${code}</code></pre>`;