Skip to content

Instantly share code, notes, and snippets.

@MarcHeiden
Last active August 2, 2023 16:12
Show Gist options
  • Save MarcHeiden/e9bef2d407618fe378135a8b96fb459e to your computer and use it in GitHub Desktop.
Save MarcHeiden/e9bef2d407618fe378135a8b96fb459e to your computer and use it in GitHub Desktop.

Markdown Snippets

Hint: GitHub does not allow css except inside SVGs.

Side by side code blocks

SCSS CSS
$color: white;
--color: white;

Not working on GitHub

SCSS
$color: white;
CSS
--color: white;

Centered image with caption

image

Caption


Not Working on GitHub

image

Caption

Centered images side by side with caption

image   image

Caption

Video

Works only on GitHub

  • Upload the video to GitHub and paste the link
loader-animation.mp4

Not working on GitHub

Link to code excerpt

Works only on GitHub

  • Append #L<lineNumber>-L<lineNumber> to the end of the url of the file on GitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment