Article version: Enterprise Server 2.16

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-01-22. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Editing wiki content

You can add images and links to content in your wiki, and use some supported MediaWiki formats.

Wikis are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.

In this guide

You can create links in wikis using the standard markup supported by your page, or using MediaWiki syntax. For example:

Adding images

Wikis can display PNG, JPEG, and GIF images.

  1. On GitHub Enterprise, navigate to the main page of the repository.

  2. Under your repository name, click Wiki.

    Wiki menu link

  3. Using the wiki sidebar, navigate to the page you want to change, and then click Edit.

  4. On the wiki toolbar, click Image.

    Wiki Add image button

  5. In the "Insert Image" dialog box, type the image URL and the alt text (which is used by search engines and screen readers).

  6. Click OK.

Linking to images in a repository

You can link to an image in a repository on GitHub Enterprise by copying the URL in your browser and using that as the path to the image. For example, embedding an image in your wiki using Markdown might look like this:

[[https://github.com/username/repository/blob/master/img/octocat.png|alt=octocat]]

Supported MediaWiki formats

No matter which markup language your wiki page is written in, certain MediaWiki syntax will always be available to you.

For security and performance reasons, some syntaxes are unsupported.

Ask a human

Can't find what you're looking for?

Contact us