Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"emojibase-regex": "^17.0.0",
"escape-html": "^1.0.3",
"file-saver": "^2.0.5",
"filesize": "11.0.13",
"filesize": "11.0.15",
"github-markdown-css": "^5.5.1",
"glob-to-regexp": "^0.4.1",
"highlight.js": "^11.3.1",
Expand All @@ -89,7 +89,7 @@
"opus-recorder": "^8.0.3",
"pako": "^2.0.3",
"png-chunks-extract": "^1.0.0",
"posthog-js": "1.360.2",
"posthog-js": "1.364.7",
"qrcode": "1.5.4",
"re-resizable": "6.11.2",
"react": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ exports[`bodyToHtml feature_latex_maths should not mangle code blocks 1`] = `"<p

exports[`bodyToHtml feature_latex_maths should not mangle divs 1`] = `"<p>hello</p><div>world</div>"`;

exports[`bodyToHtml feature_latex_maths should render block katex 1`] = `"<p>hello</p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\\xi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.04601em;">ξ</span></span></span></span></span><p>world</p>"`;
exports[`bodyToHtml feature_latex_maths should render block katex 1`] = `"<p>hello</p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\\xi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.046em;">ξ</span></span></span></span></span><p>world</p>"`;

exports[`bodyToHtml feature_latex_maths should render inline katex 1`] = `"hello <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\\xi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.04601em;">ξ</span></span></span></span> world"`;
exports[`bodyToHtml feature_latex_maths should render inline katex 1`] = `"hello <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\\xi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.046em;">ξ</span></span></span></span> world"`;

exports[`bodyToNode generates big emoji for emoji made of multiple characters 1`] = `
<DocumentFragment>
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"cronstrue": "^3.0.0",
"eslint-plugin-matrix-org": "^3.0.0",
"husky": "^9.0.0",
"knip": "6.1.0",
"knip": "6.3.0",
"lint-staged": "^16.0.0",
"lodash": "^4.17.21",
"mermaid": "^11.13.0",
Expand Down Expand Up @@ -69,7 +69,8 @@
"rollup": "patches/rollup.patch",
"postcss-mixins": "patches/postcss-mixins.patch",
"app-builder-lib": "patches/app-builder-lib.patch",
"knip": "patches/knip.patch"
"knip": "patches/knip.patch",
"plist": "patches/plist.patch"
},
"peerDependencyRules": {
"allowedVersions": {
Expand Down Expand Up @@ -108,19 +109,19 @@
"brace-expansion@2.0.2": "2.0.3",
"brace-expansion@5.0.4": "5.0.5",
"handlebars@4.7.8": "4.7.9",
"path-to-regexp@0.1.12": "0.1.13",
"path-to-regexp@8.3.0": "8.4.0",
"path-to-regexp@0.1.12": "0.2.5",
"path-to-regexp@8.3.0": "8.4.2",
"picomatch@2.3.1": "2.3.2",
"picomatch@4.0": "4.0.4",
"rollup@4.57.1": "4.59.0",
"rollup@4.57.1": "4.60.1",
"smol-toml@1.6.0": "1.6.1",
"svgo@3.3.2": "3.3.3",
"svgo@4.0.0": "4.0.1",
"underscore@1.13.7": "1.13.8",
"yaml@1.10.2": "1.10.3",
"yaml@2.8.2": "2.8.3",
"undici@7.22.2": "7.24.0",
"@xmldom/xmldom@0.8.11": "0.8.12",
"undici@7.22.2": "7.24.7",
"@xmldom/xmldom@0.8.11": "0.9.9",
"esbuild@<=0.24.2": ">=0.25.0",
"minimatch@>=10.0.0 <10.2.3": ">=10.2.3"
}
Expand Down
22 changes: 22 additions & 0 deletions patches/plist.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/lib/parse.js b/lib/parse.js
index b5e7496a28d0664933a14f4fcd89682c8a349d3f..a5de9d1edb8ce22ed93ab1ed96493d223013c296 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -63,7 +63,7 @@ function invariant(test, message) {
*/

function parse (xml) {
- var doc = new DOMParser().parseFromString(xml);
+ var doc = new DOMParser().parseFromString(xml, 'text/xml');
invariant(
doc.documentElement.nodeName === 'plist',
'malformed document. First element should be <plist>'
@@ -131,7 +131,7 @@ function parsePlistXML (node) {
if (counter % 2 === 1) {
new_obj[key] = '';
}
-
+
return new_obj;

} else if (node.nodeName === 'array') {
Loading
Loading