Skip to content

Instantly share code, notes, and snippets.

@tianon
Last active March 13, 2025 20:41
Show Gist options
  • Save tianon/75e267d9137b1c2978031b66b3a98987 to your computer and use it in GitHub Desktop.
Save tianon/75e267d9137b1c2978031b66b3a98987 to your computer and use it in GitHub Desktop.
testing emoji in headers, especially for TOC generation

➡ TOC ⬅

  1. ➡ TOC ⬅
  2. 💩 poop
    1. 🔒 locked
      1. extra whitespace (trailing too)
    2. 🤷 shrug
    3. 🚀 rocket
      1. 🙈 see no evil
      2. 🙊 speak no evil
      3. 🙉 hear no evil
  3. wtf dude /?!:[].,()*"';{}+=<>~\$|#@&–— omg
    1. seriously 。?!,、;:“”【】()〔〕[]﹃﹄“ ”‘’﹁﹂—…-~《》〈〉「」 what
    2. hmmmmm %20 hmmmmmmm %af what %zz sleepy
  4. foo-2
  5. foo
    1. foo
      1. foo
  6. foo
  7. foo-1
  8. 💩😶⬅➡🔒🔄🦾
  9. 🤢🤷🙃
  10. -1
  11. 👀 what 💩 is 🚀 even 🤢 happening 🤷

💩 poop

🔒 locked

extra whitespace (trailing too)

🤷 shrug

wtf

# foo
## bar
### baz
omg
# buzz

🚀 rocket

🙈 see no evil

🙊 speak no evil

🙉 hear no evil

wtf dude /?!:[].,()*"';{}+=<>~\$|#@&–— omg

seriously 。?!,、;:“”【】()〔〕[]﹃﹄“ ”‘’﹁﹂—…-~《》〈〉「」 what

hmmmmm %20 hmmmmmmm %af what %zz sleepy

foo-2

foo

foo

foo

foo

foo-1

lol

💩😶⬅➡🔒🔄🦾

this exposes a bug in GitHub where the anchor becomes completely empty, which obviously doesn't work

🤢🤷🙃

then this guy also goes empty, but is a duplicate, so it gets "-1" appended

-1

this anchor should match the previous one, so it should become -1-1, in theory

👀 what 💩 is 🚀 even 🤢 happening 🤷

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