Technical Notes

Configuration

  • Maxheight feature, where scrolling happens

Copy Gists

Copy feature from raw.

Styling Gists

Custom themes

triangle-exclamation

Gists are embedded using a JS script which generates the formatted Gist content. It is not IFRAME'd which means it can be accessed directly via CSS.

However it is also undocumented styling.

https://codersblock.com/blog/customizing-github-gists/arrow-up-right

Themes and styling;

https://github.com/StylishThemes/GitHub-Dark/blob/master/src/themes/github/one-dark.cssarrow-up-right

Themes

https://danielbernal.co/styling-gist-embeds-with-css/arrow-up-right

https://stylishthemes.github.io/GitHub-Dark/arrow-up-right

https://github.com/StylishThemesarrow-up-right

https://github.com/StylishThemes/GitHub-Dark#available-syntax-highlighting-themes-demoarrow-up-right

Raw Retrieve & Format

Raw retrieval;

or

[ID] is necessary [REVISION] can be omitted to get the latest revision [FILE] can be omitted to get the first file

https://gist.github.com/atenni/5604615arrow-up-right

Or it can be retrieved via GitHub's Gist API.

To get Gist Data;

https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1farrow-up-right

https://raw.githack.com/arrow-up-right

https://docsify.js.org/#/embed-files?id=embed-a-gistarrow-up-right

https://stackoverflow.com/questions/46073096/is-there-a-permalink-to-the-latest-version-of-gist-filesarrow-up-right

https://stackoverflow.com/questions/16589511/how-do-i-get-the-raw-version-of-a-gist-from-githubarrow-up-right

Last updated

Was this helpful?