$$x = \mathtip{y}{{<tex-html><img src="https://freetestdata.com/wp-content/uploads/2025/03/cropped-F-T-D-3.png"></tex-html>}}$$

<p>Some text<ul><li>item 1</li><li>item 2</li></ul>other text</p>
<p>Some text</p><ul><li>item 1</li><li>item 2</li></ul>other text<p></p>
<p>Some text $x = \mathtip{y}{{<tex-html><div style="width: 5em"><ul><li>item 1</li><li>item 2</li></ul></div></tex-html>}}$other text</p>
<p>Some text $x = \mathtip{y}{{<tex-html></tex-html></p><div style="width: 5em"><ul><li>item 1</li><li>item 2</li></ul></div>}}$ other text<p></p>
<div>Some text $x = \mathtip{y}{{<tex-html><div style="width: 5em"><ul><li>item 1</li><li>item 2</li></ul></div></tex-html>}}$other text</div>
<p>Some text $x = \mathtip{y}{{<tex-html><x-div><x-ul><x-li>item 1</x-li><x-li>item 2</x-li></x-ul></x-div></tex-html>}}$other text</p>
<style>x-div {display: block;width: 5em;}x-ul {display: list;}x-li {display: list-item;margin-left: 1em;}</style>
<!DOCTYPE html><html><head><meta charset="utf-8" /><title>2110 - \input command</title><script>MathJax = {loader: {load: ['[tex]/texhtml', '[tex]/action'],},tex: {packages: {'[+]': ['texhtml', 'action']},allowTexHTML: true,},};</script><script src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js" defer></script><style>x-div {display: block;width: 5em;}x-ul {display: list;}x-li {display: list-item;margin-left: 1em;}div.tooltip {width: 5em;}div.tooltip ul {margin: 0;padding: 0;}div.tooltip li {margin-left: 1em;}</style></head><body><p>A test in a paragraph\(x = \mathtip{y}{{<tex-html><x-div><x-ul><x-li>first line</x-li><x-li>second line</x-li></x-ul></x-div></tex-html>}}\) that has math tip with a list.</p><div>A test in a div\(x = \mathtip{y}{{<tex-html><div class="tooltip"><ul><li>first line</li><li>second line</li></ul></div></tex-html>}}\) that has a math tip with a list.</div></body></html>
On Oct 15, 2025, at 11:53 AM, Andrew Murdza <andrew...@gmail.com> wrote:
I want to use <ul><li> … </li></ul>, <img> and <p> … </p> inside of MathJax tooltips. I was using an aligned environment with &\bullet, but I want it to be regular html so that I don’t have to use \text{ … } and there are automatic line breaks. I’m wondering if it can be done in MathJaxv4.0, or if it only works for in-line elements like <span>...</span>.
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mathjax-users/23688989-b89d-433d-8f93-a4bd2f430302n%40googlegroups.com.
MathJax = {loader: {load: ['[tex]/texhtml'],
'output/chtml': {ready() {const {ChtmlMaction} = MathJax._.output.chtml.Wrappers.maction;const tooltip = ChtmlMaction.actions.get('tooltip');const actions = tooltip[0];tooltip[0] = (node, data) => {actions(node, data);for (const dom of node.dom) {const tip = dom.querySelector('mjx-tool');if (!tip.querySelector('mjx-html')) return;tip.style.visibility = 'hidden';const listener = (event) => {setTimeout(() => {MathJax.typesetPromise([tip]).then(() => tip.style.visibility='');}, data.postDelay + 300);dom.removeEventListener('mouseover', listener);}dom.addEventListener('mouseover', listener);;}};},},},tex: {inlineMath: {'[+]': [['$', '$']]},packages: {'[+]': ['texhtml']},allowTexHTML: true,},}
To view this discussion visit https://groups.google.com/d/msgid/mathjax-users/43176fdc-8962-4911-88c7-9c23beafff08n%40googlegroups.com.