How do I get Github to embed in a Confluence page
Asked by Trena Norcia:

We need Github when added to a Confluence page to be embedded. When you clicking the Github icon in the article it opens in a new browser the expanded source file.   

What do I need to have it embed in the article in Confluence?

![github embedded.JPG](/t5/image/serverpage/image-id/154771iA70160CDE2E256B3/image-size/large?v=v2&px=999 "github embedded.JPG")

Thanks


Answers:
author: Patricia Modispacher _appanvil_
body: Hi [@Trena Norcia](/t5/user/viewprofilepage/user-id/3982349), good questions!

Did you try Aura Content Formatting Macros already? It has an embed Macro. You can find my**[article here.](https://community.atlassian.com/t5/App-Central/Embedding-Magic-with-the-HTML-Macro-in-Confluence-Cloud/ba-p/2694412)**

**![aura html form.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/341881i3EBDA90C85B27C66/image-size/large?v=v2&px=999 "aura html form.jpg")**


author: Sue Rocha_Mibex Software_
body: Hello [@Trena Norcia](/t5/user/viewprofilepage/user-id/3982349),

You may find [Include GitHub for Confluence Cloud](https://marketplace.atlassian.com/apps/1228981/include-github-for-confluence-markdown-asciidoc?hosting=cloud&tab=overview)useful for your use case where you want to embed a GitHub source file into Confluence.

You can simply **copy the URL of the GitHub file** and paste it into the Confluence page.

In the following example we use this GitHub URL of a .js file:

![4ce71a2f-9539-4c3e-a68a-f1b714147d46.png](https://community.atlassian.com/t5/image/serverpage/image-id/248371i65344ACEE1D22992/image-size/large?v=v2&px=999 "4ce71a2f-9539-4c3e-a68a-f1b714147d46.png")

Then paste the URL in the Confluence file as shown in the video and the macro will automatically be applied to embed the file.

![include-github-file-gif (1).gif](https://community.atlassian.com/t5/image/serverpage/image-id/248372i25CEE028748AF33A/image-size/large?v=v2&px=999 "include-github-file-gif (1).gif")

Also, we have just launched [Include GitHub for Confluence DC](https://marketplace.atlassian.com/apps/1228981/include-github-for-confluence-markdown-asciidoc?hosting=datacenter&tab=overview) in the marketplace. It can be used to render public and private files from both GitHub Enterprise and GitHub.com.

I hope this is helpful.

Best regards,  
Sue from Mibex Software

comments: author: Benjamin B?low
body: its not working. i tested it with private and with public repo. its not embedding the content. only Link


author: Daniel Eads
body: Hi [@Trena Norcia](/t5/user/viewprofilepage/user-id/3982349) ,

Confluence Cloud's native smart link functionality might help out here. When you drop a link into the editor, you might notice it changes from a raw URL into a nicely formatted page title:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/155036iB97520D36B555508/image-dimensions/546x101?v=v2 "image.png")

If you select this link in the editor, you can change its display style:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/155037iDA8B596BF2058F4C/image-size/large?v=v2&px=999 "image.png")

The "Display as card" option will expand out a bit and show some extra information. For pull requests, it will at least include the summary:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/155038i40D176D225ECC3A8/image-size/large?v=v2&px=999 "image.png")

Some types of content such as gists will also have a "Display embed" option, which can give you the whole content right on the Confluence page:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/155039i58FA2949AC41FDCA/image-size/large?v=v2&px=999 "image.png")

And you'll also notice that the "Display embed" option gives you the resize handles, as well as lets you wrap text around the embed if you'd like to.

Cheers,  
Daniel

comments: author: Andrew Grossman
body: [@Daniel Eads](/t5/user/viewprofilepage/user-id/1527694) What are the Confluence requirements to get the display options shown above? I am working out of a Confluence cloud instance and do not have that "Display" dropdown available. The link I'm trying to embed is to a source file with a line marker in GitHub.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/233360iBD7A0FB4FA8FFFF2/image-size/large?v=v2&px=999 "image.png")


author: Michael Kamprath
body: Same here.


author: Clare Warden
body: Has anyone received a response here? We're also not getting this option.


author: Piotr Boho
body: I quess if **repository** is not **public** then there is no option to reveal data


author: S Irvine
body: I do not see any dropdown as shown above.


author: JoEllen Carter
body: Also would like to do this. I see everything except the embed option.


author: Kishan Sharma
body: Hi Trena, are you using any plugin already of plan to install one ? There are plenty of plugins available to achieve this. Refer [this article.](https://www.moveworkforward.com/blog/bring-information-from-github-into-confluence)


Tags: cloud

confluence-cloud