This issue has been created
 
 
MathJax Macro / cid:jira-generated-image-avatar-02f41473-e400-4805-afeb-47e5b76b22b1 MATHJAX-39 Open

Show the formulas of the MathJax macro typeset in the WYSIWYG editor

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3709255a-8617-4de5-89d6-4dbb62743a9a Charpentier Lucas created this issue on 23/Oct/26 10:29
 
Summary: Show the formulas of the MathJax macro typeset in the WYSIWYG editor
Issue Type: cid:jira-generated-image-avatar-02f41473-e400-4805-afeb-47e5b76b22b1 Improvement
Affects Versions: 1.1.10
Assignee: Unassigned
Created: 23/Oct/26 10:29
Priority: cid:jira-generated-image-static-major-75ae588f-15fa-4ad3-a826-c2c34cc8578e Major
Reporter: Charpentier Lucas
Description:

The MathJax macro typesets its formulas with JavaScript. In the WYSIWYG editor the formulas stay raw LaTeX, like y = \frac{c}{cb-ad}, so the user cannot see the formula they wrote.

The fix is done in MathJaxMacro.xml: in the editor, typeset the formula, by loading MathJax in the editor or rendering it on the server, or else show the source in a frame that says it is a formula.

Depends on

  • XWIKI-25523, which gives the macros a supported way to know they are rendered for the WYSIWYG editor and a shared edit-mode representation to reuse.

KOs covered

Macro Criterion Problem Depends on
mathjax E1 wysiwyg The editor shows the formulas as raw LaTeX, still after 30 seconds and after reopening the page, while view mode shows them typeset, with numbered equations and fractions. XWIKI-25523

Impact found on macro fluidity

This KO comes from the WYSIWYG usability audit of the macros, under the criterion E1 wysiwyg of its usability criteria, which accepts a dedicated edit representation that keeps the meaning of the macro. The page of the macro, linked in the table, has the full notes and the steps to reproduce. Fixing it means giving the macro an edit-mode representation built on XWIKI-25523.