How to paste ChatGPT or Claude maths into Confluence and make it render
You ask ChatGPT, Claude or Gemini to explain a calculation, paste the answer into a Confluence page, and the maths arrives like this:
The monthly payment is $$M = P\,\frac{i(1+i)^n}{(1+i)^n - 1}$$ where $i = r/12$ is the monthly rate.
Every formula is still raw LaTeX between dollar signs. This article explains why that happens and what you can do about it.
Why Confluence shows the dollar signs
AI assistants answer in Markdown, and Markdown writes maths in LaTeX between dollar signs: $…$ for a formula inside a sentence and $$…$$ for a formula on its own line. Chat apps render that for you. Confluence does not: its editor has no maths support of its own, so the text is kept exactly as you pasted it.
Confluence's Markdown paste converts headings, lists and tables, but maths is not part of it. The dollar signs survive, which is actually useful — it means nothing was lost.
Option 1: re-enter every formula in a maths macro
Maths apps on the Atlassian Marketplace add a LaTeX macro. You type /latex in the editor, paste one formula into the macro dialog, save, and repeat for the next one.
This works well when you write a formula or two by hand. For an AI answer with twenty formulas it means twenty dialogs, and you have to delete the original $…$ text each time.
Option 2: convert the whole page at once
MathWrap keeps the $…$ text you pasted and converts all of it in one step:
- Paste the AI answer into a page and publish it.
- Press Ctrl+Shift+M (Cmd+Shift+M on Mac), or open the page menu ••• and choose MathWrap: render $ LaTeX formulas.
- Press Wrap $ into formulas.
Every $…$ becomes an inline formula and every $$…$$ on its own line becomes a centred display formula. The rest of the page stays ordinary Confluence content — headings, tables and lists are not put inside a macro.
Ordinary dollar signs are safe: prices such as $5 or $49 per seat, escaped \$100, and anything inside code blocks are left alone, following the same rules as Markdown maths.
Editing later
Need to change something? Unwrap formulas into $ turns every formula back into the exact $…$ text it came from. Edit the text (or paste a corrected answer from the assistant), publish, and wrap again. A single formula can also be edited in place with a live preview.
Skipping the menu entirely
If your team pastes AI output often, a space administrator can switch on automatic conversion for the space. Pages are then converted within about half a minute of being published, with no menu at all. It is off by default and set per space.
Summary
| Macro per formula | MathWrap | |
|---|---|---|
Keep the pasted $…$ text | No, re-enter each formula | Yes |
| Steps for 20 formulas | 20 dialogs | One button |
| Back to editable text | By hand | Unwrap |
| Automatic on publish | No | Optional, per space |
MathWrap is on the Atlassian Marketplace and free for up to 10 users. See the user guide for details.