Skip to content

Instantly share code, notes, and snippets.

@arisacoba
Last active August 25, 2025 10:29
Show Gist options
  • Select an option

  • Save arisacoba/e62a6e483197a951a1a1b6b232c2b0cf to your computer and use it in GitHub Desktop.

Select an option

Save arisacoba/e62a6e483197a951a1a1b6b232c2b0cf to your computer and use it in GitHub Desktop.
Some discoveries on how GitHub displays certain markdown syntaxes

✨ GitHub-Flavored Markdown TILs

Some discoveries on how GitHub displays certain markdown syntaxes

Diff

Add diff after the first triple backticks ```

- "/ui-patterns/progressive-disclosure"
+ "/design/ui-patterns/progressive-disclosure"

Figma icon + text

Personal workflow. This is what I use whe sharing Figma links on GitHub Issues/Discussions

Figma logoFigma title here

figma-github-raycast-snippet.MP4

Snippet

<span><a href=""><img src="https://user-images.githubusercontent.com/8143661/212871854-1ad48969-c512-4506-b18b-cb12a4349a1f.svg" alt="Figma logo">Link name</a></span>

KBD

Make a text appear like a button

Create gist

Use different images for different themes

Add #gh-dark-mode-only or #gh-light-mode-only at the end of the image URL

dark-mode light-mode

Try switching your theme preferences

Progressive disclosure

How to install GitHub's CLI
brew install gh

Warning / Note blockquotes

Screenshot of Info, Warning, and Important markdown blockquotes

> [!NOTE]
> New

> [!WARNING]
> Add description on this warning

> [!IMPORTANT]
> Add description on this important note

> [!TIP]
> Add description on this tip

ℹ️ Old syntax was deprecated

Footnote

Here is a simple footnote1. With some additional text after it. Check this 2

Here is a simple footnote[^1]. With some additional text after it.
Check this [^Footnote]

[^1]: My reference.
[^Footnote]: Yes this can be done but still renders as number

Footnotes

  1. My reference.

  2. Yes this can be done but still renders as number

@BA-CalderonMorales
Copy link

Didn't know about the footnote annotations! That's so cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment