Open csalvato opened 4 years ago
I can confirm that currently it's not possible to use such macro. However I changed the type of issue to feature, as it has been never implemented.
Thank you for taking a look @Comandeer! It looks like there's no workaround right now, aside from a fix in the code (i.e. contributing a PR). Is that right?
Yes, it's right. Everything is contained in iframe
with preview, so the easiest solution would be to allow passing additional config to MathJax, which would be added to iframe
's source code.
Perfect, thanks @Comandeer!
Do you have any idea in terms of how this falls into the priorities for new features? Is this something that would move to the top of your list?
Or will we need to find another solution to solve this problem for our users editing MathML in our editor?
@Comandeer Do you know if this is this a low or high priority item for the roadmap?
Type of report
Bug
Provide detailed reproduction steps (if any)
config.mathJaxLib
pointing to MathJax 2.7.6.MathJax.Hub.Config()
. For example, this is our full config:\degree
).Expected result
We would expect the defined macros (e.g. the
\degree
macro) to render properly, like this:Actual result
The actual result is the the macros are not being used, so there's a processing error, which is not displaying properly:
Other details
This is a problem for us because we are able to use TeX macros to display content on our site, but not during authoring/editing since CKEditor does not seem to support/respect the use of TeX macros. Are we doing it wrong, perhaps?
It doesn't look like this is even possible at all because of how the plugin is rendered here: https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/mathjax/plugin.js
It appears this issue was reported a few years ago, too, but never made it into GitHub: http://dev.ckeditor.com/ticket/16965
This is happening on a variety of browsers and OS'es. My machine is: