I have started putting Mathematica code in the annotations portion of on my website, but right now I am editing the code manually. Is there an more robust automated way to do this? Example HTML page shows annotations in menu.
<!doctype html><script type="text/x-mathjax-config">
MathJax.Hub.Config({
MathMenu: {
semanticsAnnotations: {
Mathematica:["Mathematica"]
}
}
});
</script><script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<math xmlns='http://www.w3.org/1998/Math/MathML'>
<semantics>
<mrow>
<mi>sin</mi>
<mo>⁡</mo>
<mo>(</mo>
<mi>x</mi>
<mo>)</mo>
</mrow>
<annotation encoding="Mathematica">Sin[x]</annotation>
</semantics>
</math>
I am just looking to automate the generation of the MathML portion of the code.