gists

Subscribe to all “gists” posts via RSS or follow GitHub Changelog on Twitter to stay updated on everything we ship.

To support better content moderation, you can now disable comments on individual gists in the UI as well as with the APIs. Once commenting is disabled, existing comments on the gist will be hidden and no new comments can be posted.

Screenshot of the gist edit page with the "Disable comments" option highlighted with a dark orange outline.

To learn more check out the documentation.

Questions or suggestions? Join the conversation in the community discussion.

See more

Two weeks ago, GitHub released support for Mermaid diagrams in files and most Markdown fields (see Include diagrams in your Markdown files with Mermaid). However, gists were missing support for Mermaid. Now, gists do support Mermaid diagrams just like discussions, issue comments, pull request comments, and files on GitHub. Still to come, and very important, is wiki support for Mermaid diagrams.

For more information about using Mermaid with GitHub, see Creating diagrams in the GitHub documentation.

See more

As you may or may not know, gists are actually Git repositories. New gists are now created with a default branch name of either main or the alternative default branch name you've defined in your user settings. This matches how other repositories are created on GitHub.

See more

You can now add images and videos to Markdown files in gists by pasting them into the Markdown body or selecting them from the dialog at the bottom of the Markdown file. For information on supported file types, see the documentation.

See more