pxt-core 12.2.25 → 12.2.26
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/built/backendutils.js +1 -1
- package/built/cli.js +2 -1
- package/built/pxt.js +3 -2
- package/built/pxtlib.js +1 -1
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtembed.js +1 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/skillmap/js/{main.9134fb4e.js → main.d1d7cd5b.js} +2 -2
- package/package.json +1 -1
- package/react-common/components/share/ShareInfo.tsx +1 -1
- package/webapp/public/skillmap.html +1 -1
package/built/backendutils.js
CHANGED
|
@@ -1071,7 +1071,7 @@ ${opts.repo.name.replace(/^pxt-/, '')}=github:${opts.repo.fullName}#${opts.repo.
|
|
|
1071
1071
|
}
|
|
1072
1072
|
return r;
|
|
1073
1073
|
}
|
|
1074
|
-
html = html.replace(/<h(\d)[^>]
|
|
1074
|
+
html = html.replace(/<h(\d)[^>]*>\s*([~@])?\s*(.*?)<\/h\d>/g, (full, lvl, tp, body) => {
|
|
1075
1075
|
let m = /^(\w+)\s+(.*)/.exec(body);
|
|
1076
1076
|
let cmd = m ? m[1] : body;
|
|
1077
1077
|
let args = m ? m[2] : "";
|
package/built/cli.js
CHANGED
|
@@ -36,11 +36,12 @@ pxt.docs.requireDOMSanitizer = () => {
|
|
|
36
36
|
const sanitizeHtml = require("sanitize-html");
|
|
37
37
|
const defaults = sanitizeHtml.defaults || {};
|
|
38
38
|
const baseAllowedAttrs = defaults.allowedAttributes || {};
|
|
39
|
+
const allowedTags = defaults.allowedTags || [];
|
|
39
40
|
const mergeClassAttribute = (tag, ...otherAttributes) => {
|
|
40
41
|
const existing = baseAllowedAttrs[tag] || [];
|
|
41
42
|
return Array.from(new Set([...existing, "class", ...otherAttributes]));
|
|
42
43
|
};
|
|
43
|
-
const options = Object.assign(Object.assign({}, defaults), { allowedAttributes: Object.assign(Object.assign({}, baseAllowedAttrs), { code: mergeClassAttribute("code"), pre: mergeClassAttribute("pre"), div: mergeClassAttribute("div", "data-youtube", "title") }) });
|
|
44
|
+
const options = Object.assign(Object.assign({}, defaults), { allowedTags: [...allowedTags, "img"], allowedAttributes: Object.assign(Object.assign({}, baseAllowedAttrs), { code: mergeClassAttribute("code"), pre: mergeClassAttribute("pre"), div: mergeClassAttribute("div", "data-youtube", "title") }) });
|
|
44
45
|
return (html) => sanitizeHtml(html, options);
|
|
45
46
|
};
|
|
46
47
|
let forceCloudBuild = process.env["KS_FORCE_CLOUD"] !== "no";
|
package/built/pxt.js
CHANGED
|
@@ -107281,7 +107281,7 @@ ${opts.repo.name.replace(/^pxt-/, '')}=github:${opts.repo.fullName}#${opts.repo.
|
|
|
107281
107281
|
}
|
|
107282
107282
|
return r;
|
|
107283
107283
|
}
|
|
107284
|
-
html = html.replace(/<h(\d)[^>]
|
|
107284
|
+
html = html.replace(/<h(\d)[^>]*>\s*([~@])?\s*(.*?)<\/h\d>/g, (full, lvl, tp, body) => {
|
|
107285
107285
|
let m = /^(\w+)\s+(.*)/.exec(body);
|
|
107286
107286
|
let cmd = m ? m[1] : body;
|
|
107287
107287
|
let args = m ? m[2] : "";
|
|
@@ -163226,11 +163226,12 @@ pxt.docs.requireDOMSanitizer = () => {
|
|
|
163226
163226
|
const sanitizeHtml = require("sanitize-html");
|
|
163227
163227
|
const defaults = sanitizeHtml.defaults || {};
|
|
163228
163228
|
const baseAllowedAttrs = defaults.allowedAttributes || {};
|
|
163229
|
+
const allowedTags = defaults.allowedTags || [];
|
|
163229
163230
|
const mergeClassAttribute = (tag, ...otherAttributes) => {
|
|
163230
163231
|
const existing = baseAllowedAttrs[tag] || [];
|
|
163231
163232
|
return Array.from(new Set([...existing, "class", ...otherAttributes]));
|
|
163232
163233
|
};
|
|
163233
|
-
const options = Object.assign(Object.assign({}, defaults), { allowedAttributes: Object.assign(Object.assign({}, baseAllowedAttrs), { code: mergeClassAttribute("code"), pre: mergeClassAttribute("pre"), div: mergeClassAttribute("div", "data-youtube", "title") }) });
|
|
163234
|
+
const options = Object.assign(Object.assign({}, defaults), { allowedTags: [...allowedTags, "img"], allowedAttributes: Object.assign(Object.assign({}, baseAllowedAttrs), { code: mergeClassAttribute("code"), pre: mergeClassAttribute("pre"), div: mergeClassAttribute("div", "data-youtube", "title") }) });
|
|
163234
163235
|
return (html) => sanitizeHtml(html, options);
|
|
163235
163236
|
};
|
|
163236
163237
|
let forceCloudBuild = process.env["KS_FORCE_CLOUD"] !== "no";
|
package/built/pxtlib.js
CHANGED
|
@@ -9560,7 +9560,7 @@ ${opts.repo.name.replace(/^pxt-/, '')}=github:${opts.repo.fullName}#${opts.repo.
|
|
|
9560
9560
|
}
|
|
9561
9561
|
return r;
|
|
9562
9562
|
}
|
|
9563
|
-
html = html.replace(/<h(\d)[^>]
|
|
9563
|
+
html = html.replace(/<h(\d)[^>]*>\s*([~@])?\s*(.*?)<\/h\d>/g, (full, lvl, tp, body) => {
|
|
9564
9564
|
let m = /^(\w+)\s+(.*)/.exec(body);
|
|
9565
9565
|
let cmd = m ? m[1] : body;
|
|
9566
9566
|
let args = m ? m[2] : "";
|