How to migrate content from MathJax mathinline macro to the LaTeX mathinline macro

This article explains how to migrate the content from the Mathjax mathinline macro to the LaTeX mathinline macro.


  1. Log in to Confluence instance as an Administrator and navigate to Cog Wheel >> Manage Apps

  2. Disable the MathJax/Other Math app installed in Confluence.

  3. Click on Find new apps to install the LaTeX Math. Refer to this marketplace link:

  4. Once you install the app, add the license to the installed LaTeX Math app.

  5. Press the small + button on the right of the page where it says “x of x modules enabled”.

  6. Scroll down and find the “mathinline” module. When the mouse is over it, a “Disable” button is seen as shown below. Click on this and the module will show as disabled.


  7. In the Latex Math settings page, enable the “Automatic conversion to math macros” option.


  8. Navigate to the User Macros page in Confluence and enter the below details:

    • Macro Name: mathinline

    • Macro Body Processing: Unrendered

    • Copy the below template to the macro body.

      <ac:macro ac:name="latex"> <ac:plain-text-body><![CDATA\($!parambody$!body\)]></ac:plain-text-body> <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter> </ac:macro>#doNothing()

  9. Click Save

  10. Refresh the Confluence page containing the mathline macro.

Perform the above steps in a staging environment before implementing them in production.