Open
Description
Hi,
In "Typesetting and Converting Mathematics" , there are two errors in the code() example
- the function is named "typeset" instead of "code"
- the code function must returns an iterable
So :
typeset(() => {
const math = document.querySelector('#math');
math.innerHTML = '$$\\frac{a}{1-a^2}$$';
return math;
});
must be replaced by :
code(() => {
const math = document.querySelector('#math');
math.innerHTML = '$$\\frac{a}{1-a^2}$$';
return [math];
});
br,