Skip to content

Commit f7a0757

Browse files
authored
Merge pull request #1405 from mathjax/update/README
Use serializeXML rather than outerHTML in example code
2 parents b4445b9 + cc77be8 commit f7a0757

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ await MathJax.init({
9999
loader: {load: ['input/tex', 'output/svg']}
100100
});
101101
const svg = await MathJax.tex2svgPromise('\\frac{1}{x^2-1}', {display: true});
102-
console.log(MathJax.startup.adaptor.outerHTML(svg));
102+
console.log(MathJax.startup.adaptor.serializeXML(svg));
103103
```
104104

105105

@@ -119,7 +119,7 @@ MathJax.init({
119119
loader: {load: ['input/tex', 'output/svg']}
120120
}).then(() => {
121121
const svg = MathJax.tex2svg('\\frac{1}{x^2-1}', {display: true});
122-
console.log(MathJax.startup.adaptor.outerHTML(svg));
122+
console.log(MathJax.startup.adaptor.serializeXML(svg));
123123
}).catch((err) => console.log(err.message));
124124
```
125125

0 commit comments

Comments
 (0)