Do you want to know how to make a subclass of math nodes? It's simple
knowledge of python.
You can do it like following:

    from docutils.nodes import math

    class plotly_elements(math):
        pass


That's all.

If you'd like to know about that behavior, unfortunately there are no
document for that.
It only described in CHANGES and its code:
https://github.com/sphinx-doc/sphinx/blob/0319faf8f1503453b6ce19020819a8cf44e39f13/sphinx/domains/math.py#L80-L85

Thanks,
Takeshi KOMIYA

2020年1月2日(木) 23:08 <[email protected]>:
>
> Hello,
>
> On Thu, 2020-01-02 at 23:04 +0900, Komiya Takeshi wrote:
>
> mathjax will be loaded only when document contains any math elements.
>
> How about make plotly objects subclasses of math node? Then mathjax
>
> extension will recognize them as math elements.
>
>
> Do you have any pointers (documentation links) as to how I could do that? I'm 
> not a plotly author and I have never really looked at Sphinx internals either.
>
>
> Thanks,
>
> Moritz
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sphinx-users/0a2462c47569aba75e80727e17069e5f440247e8.camel%40gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAFmkQAMC_sDr4i7J4ww1PTg4Oz3UczWtSn-GnHW48BXYoikrog%40mail.gmail.com.

Reply via email to