TELCOMA Global  /  Gist Embed for Confluence  /  Documentation

GitHub gists, on Confluence pages.

Gist Embed adds a Gist macro to Confluence Cloud. You give it a gist link; readers see the gist's files with Confluence's own code highlighting, in light and dark mode. The link stays in the page, and the files come from GitHub, so the page follows the gist. A converter lets Confluence admins move pages off the macro of the GitHub Gists in Confluence app.

Install

Two steps, both inside Confluence.

STEP 1

Find the app

In Confluence go to Settings → Apps → Find new apps and search for Gist Embed. It's free for every site size. The listing is not public yet; request access until it is.

STEP 2

Approve the permissions

The app asks to check that the person using the converter is a Confluence admin, to search, read and write pages and blog posts, to use app storage, and to call GitHub. Showing a gist uses only the macro's own settings, GitHub and app storage. The page permissions are for the converter and for Word export.

Anyone who can edit a page can insert the macro. Licensed users and guests who can view the page see the gist. Only Confluence admins can open the converter.

The macro

Paste a link, or use the dialog.

Paste a link. Edit a page and paste a gist link, such as https://gist.github.com/your-name/1a2b3c4d. It becomes the Gist macro at once and shows every file of the gist. Publish the page.

Use the dialog when you want to choose a file, highlight lines or change how the code looks:

  1. Edit a page, type /Gist and pick the Gist macro.
  2. Paste the gist link and press Load. The dialog gets the gist from GitHub.
  3. If the gist has more than one file, choose All files or one file under Show.
  4. With one file shown, type the lines to highlight under Highlight lines, such as 3, 10-14.
  5. Tick or untick Line numbers and Wrap long lines. If a Markdown file is shown, choose whether Markdown files show as formatted text, like on GitHub, or as code.
  6. Check the preview, click Insert, then publish the page.

Unless you choose otherwise, a macro shows all files, with line numbers, long lines scrolling sideways, and Markdown files as formatted text.

To change a macro later, edit the page, select the macro and click its edit button. The dialog opens with the macro's settings. This works for a macro made by pasting a link too.

Public and secret gists both work. A link to one revision always shows that version.

What readers see

Code that looks like the rest of Confluence.

The files

The gist's description and a View on GitHub link, then each file under its name. The name links to that file on GitHub.

Highlighting, light and dark

Code is drawn with Confluence's own code block, so the highlighting follows each reader's light or dark theme. The language comes from GitHub, or from the file's name.

Markdown files

A Markdown file shows as formatted text: headings, lists, tables and code. HTML in it is shown as text and never run, and an image shows as a link. Choose As code in the dialog to show the Markdown itself.

Long files

A file over 400 lines shows its first 400 and a button that shows all of its lines.

Files that are not text

An image, or another file that is not text, is shown as a link to it on GitHub.

When GitHub does not answer

The page shows the last copy the app kept, with a line that says so and how old the copy is.

Export to Word

The macro exports as the files it shows, as code blocks, with a link to the gist.

Export to PDF

Confluence's new PDF export does not call Forge macros at the time of writing, so a gist is not in the PDF. Export to Word instead.

The converter

Move pages off the GitHub Gists in Confluence macro.

Confluence admins open Confluence administration → Apps → Gist converter.

  1. Find the pages. Click Find pages. The converter lists the pages and blog posts that use the GitHub Gist macro of the GitHub Gists in Confluence app, up to 1,000 at a time. Pages you are not allowed to see are not listed.
  2. Choose what each macro becomes.
    • This app's Gist macro: the same link, and the page keeps showing the gist as it changes on GitHub.
    • Confluence code blocks: a copy of the files as they are now, with a link to the gist. No app is needed afterwards.
  3. Convert. Try one page first: click Convert on its row, then open the page to check it. To do the rest, pick a space if you want to go space by space, click Convert all pages (the button shows how many) and confirm. Pages are converted one at a time, as you, and each one shows its result. Stop ends the run after the current page. Keep the converter open until it finishes.

Each converted page is saved as a new version under your name, with the note "GitHub Gist macros converted by the Gist app", so the page history can always bring back the old one. Under Converted pages, Undo puts a page back as it was, as long as nobody has changed it since; otherwise the converter tells you which version to restore from the page history.

For code blocks, each gist is read from GitHub during the conversion. The copy has the gist's description and a View on GitHub link, then each file's name and a code block. A file that is too large or is not text is linked on GitHub, not copied, and the row says so. A gist that GitHub cannot give just then is left as it is, and the row says so; click Try again on the row a minute later.

A macro whose link is not a gist link has nothing to copy. For code blocks it is left as it is. As this app's macro it then says "This is not a gist link" on the page, so you can fix it there. A macro placed inside a line of text is left as it is, and the result says so; move it to a line of its own and convert again.

People who watch a page may get a notification when it is converted. Confluence gives apps no way to turn that off, which is one more reason to try one page first.

The converter looks only for the old macro. Pages that already use this app's Gist macro are never listed.

Moving from GitHub Gists in Confluence

Find, convert, check, uninstall.

GitHub Gists in Confluence runs on Atlassian Connect, and Atlassian ends support for Connect apps on 31 January 2027. Gist Embed runs on Forge, Atlassian's own platform. To move:

  1. Install Gist Embed.
  2. Open Confluence administration → Apps → Gist converter and click Find pages.
  3. Choose what each macro becomes. Click Convert on one page's row and open that page to check it.
  4. Convert the rest, all at once or space by space. Undo any you want back.
  5. When you are happy, remove GitHub Gists in Confluence.

Search can take a minute to catch up after a change, so a page you just converted or undid may not be listed straight away.

Limits

What it doesn't do.

  • Changes on GitHub show on pages within 15 minutes, not at once. Load in the dialog fetches the gist at once.
  • Large gists: 20 files a gist and 100,000 characters a file are shown. The rest is linked on GitHub.
  • Long files show their first 400 lines, with a button for the rest.
  • Images and other files that are not text show as links, not pictures.
  • Highlighted lines apply when one file is shown.
  • Only gists on GitHub.com. The app can call GitHub's three gist addresses and no others, so gists on a GitHub Enterprise Server of your own are not shown.
  • Who sees gists: licensed users and guests. Anonymous visitors of a public space do not see them.
  • The converter covers pages and blog posts the admin can see, and changes only those the admin can edit. Templates, comments, archived pages and pages in the trash are not converted. It lists up to 1,000 pages per search; search again for more.
  • Export to Word gives the files as code blocks. Export to PDF: Confluence's new PDF export does not call Forge macros at the time of writing. See above.

Troubleshooting

What the messages mean.

The macro and the converter say in plain words what went wrong. These are the messages you are most likely to see.

This is not a gist link

The link in the macro is not one the app reads. Edit the macro and use a link that starts with https://gist.github.com/. See the links it accepts.

GitHub could not find this gist

The gist may have been deleted, or the link may be wrong. Open the link on GitHub to check it, then edit the macro.

GitHub did not answer

GitHub was slow or down when the app asked. If the app has a copy of the gist, the page shows it and says how old it is. If not, the macro says so, with a link to open the gist on GitHub. Try again in a minute.

The page shows an old version of the gist

Changes on GitHub show within 15 minutes. To see one at once, edit the page, open the macro's dialog and press Load.

This gist no longer has a file named …

The file the macro was set to show is gone from the gist, so all of its files are shown. Edit the macro to choose another file.

Only Confluence administrators can use the Gist converter

Every converter action first asks Confluence whether you administer the site. Ask a Confluence admin to open the converter.

Your data

Gists come from GitHub. Your pages stay in Confluence.

What it reads

The macro reads its own settings: the gist link and how to show it. The converter reads the pages it converts, as the admin.

What it changes

Only pages an admin converts or undoes, each as a new page version.

What it stores

A copy of each gist it shows, and the converter's log: page id, title, what the macros became, version numbers and times. No names, emails or account IDs.

Where it goes

To GitHub only: the gist's id and, where needed, its owner, a revision and file names. No page content. Nothing is sent to us.

Full details in the privacy policy.

Frequently asked

The questions people ask first.

Is it really free?

Yes, for every site size. There is no paid plan and no trial.

Do I need the converter?

Only if your site has pages with the macro of the GitHub Gists in Confluence app. Otherwise just use the Gist macro.

Which option should I pick in the converter?

Pick this app's macro if the gists still change and the pages should follow them. Pick code blocks if the code should stay as it is today, or if you want the pages to need no app at all.

Can I undo a conversion?

Yes. Undo in the converter puts a page back while nobody has changed it since, and the page history always has the old version.

Do secret gists work?

Yes. A secret gist is one GitHub does not list, and anyone who has its link can read it. Once it is on a page, everyone who can view the page can read it.

What if I uninstall the app?

Pages converted to code blocks are not affected. Pages with this app's macro keep the gist link in the page, inside the macro, but Confluence cannot show the gist until the app is installed again. The converter's list of converted pages is deleted with the app; each page's history still has its old version.

Does it send my pages anywhere?

No. To show a gist it asks GitHub for that gist, by the gist's id. No page content, names or account IDs are sent.

Is it made by GitHub?

No. It is made and supported by TELCOMA Global. GitHub and Gist are trademarks of GitHub, Inc.

Support

Ask the people who built it.

When reporting a problem, include your site URL and, if you can, the gist link that shows wrongly. We never need passwords or tokens.

Get help

One business day, usually much less.

Email
[email protected]
Support page
Known limits, what to include, status
Response time
Within one business day
Email support