This issue has been created
There are 2 updates.
 
 
Confluence / cid:jira-generated-image-avatar-acdbcbcd-46ba-48c3-bd35-3fd2f8ef535d CONFLUENCE-540 Open

Broken MathJax Code Block Migration

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-79423060-b4a8-4a35-b125-443bcc48b23a admin@ohrner-it created this issue on 11/Aug/26 14:53
 
Summary: Broken MathJax Block Migration
Issue Type: cid:jira-generated-image-avatar-acdbcbcd-46ba-48c3-bd35-3fd2f8ef535d Bug
Affects Versions: 9.95.1
Assignee: Unassigned
Components: Syntax - XHTML
Created: 11/Aug/26 14:53
Priority: cid:jira-generated-image-static-major-14053094-90c1-4b5d-945f-b6117f10ce0f Major
Reporter: admin@ohrner-it
Description:

When importing a Confluence XML export, LaTeX math blocks are only migrated correctly if the macro body already starts with

\begin\{align}

and ends with

\end{align} 

Every other LaTeX block which is wrapped in

\begin{aligned}  \end{aligned}

fails on render. The XWiki MathJax extension displays a yellow box containing the raw macro content instead of
the formula.

A broken migration looks like this:

\begin\{aligned}
a &= b + c \\
d &= e + f
\end\{aligned}

A working migration looks like this:

\begin\{align}
a &= b + c \\
d &= e + f
\end\{align}
 
 

2 updates

 
cid:jira-generated-image-avatar-79423060-b4a8-4a35-b125-443bcc48b23a Changes by admin@ohrner-it on 11/Aug/26 14:54
 
Summary: Broken MathJax Code Block Migration
Description: When importing a Confluence XML export, LaTeX math blocks are only migrated correctly if the macro body already starts with
{noformat}
\begin \ {align}{noformat}
and ends with

{noformat}
\end{align} {noformat}
Every other LaTeX block which is wrapped in
{noformat}

\begin{aligned} ....   \end{aligned}{noformat}
fails on render. The XWiki MathJax extension displays a yellow box containing the raw macro content instead of
the formula.

A broken migration looks like this:
{code:none}
\begin
\ {aligned}
a &= b + c \\
d &= e + f
\end\{aligned}
{code}

A working migration looks like this:
{code:none}
\begin
\ {align}
a &= b + c \\
d &= e + f
\end
\ {align}
{code}