            console.error(e);
                    } else {
                        throw e;
                    }
                }
            }
        </script>
    </head>
    <body>
        <textarea id="input" rows="5">
\left( x \right) \left( x^2 \right) % comment
\left( \frac{a}{b} \right) \left( \frac{a^2}{b} \right)
\left( \dfrac{a}{b} \right) \left( \dfrac{a^2}{b} \right)
        </textarea>
        <div id="math"></div>
    </body>
</html>
