-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raw math support #1071
Comments
To my knowledge, Confluence does not permit the injection of JavaScript HREF/resources. I am not sure how it would be possible to support MathJax. This extension does support injecting math into LaTeX macros. Maybe this capability will work for you use case? |
Injecting raw html is recommended to be disabled, but it may be enabled. For mermaid e.g. if you have don't have a solution to render the graph locally and upload the output, then you can still upload the graph source code and insert the mermaid renderer JS library via CDN, if raw html is enabled. With the So would it be possible, if there is a math block, you upload it as the math notation for mathjax? I'll include the necessary JS injection on the top of the rst file. |
Mind trying the following branch:
With the option:
(along with an injected mathjax directive) If this works as expected, I'll cleanup the code and update documentation accordingly. |
Yes, this works as expected:
I understand that a confluence instance where raw html is enabled is crucial (to get mathjax JS) and this is a strong limitation, but getting or enabling mathjax by confluence can now be pushed to other developers, and even in this form, can be used by some. Thanks for the prompt feature implementation :) |
Thanks for testing. I'll clean this up and get it into the development branch (which in turn should be available next release). Might rename the configuration option to |
Support has been added into the development tree via #1075. The option has been finalized to |
feature request: math support
Would it be possible to add raw math support? If confluence is set up so that it can accept raw html code, then math could be inserted in latex format, and MathJax could render it. What confluencebuilder needs to do here is to convert the
:math:
a^2 + b^2 = c^2`` to the format\(a^2 + b^2 = c^2\)
and insert mathjax cdn link to the confluence page. Also with block math.The text was updated successfully, but these errors were encountered: