Search code examples
githubmarkdownemoji

How can I insert a GitHub emoji in a code section of a Markdown file?


I am making a documentation project on GitHub, so I have edited all the contents in my Markdown file, but I am facing an issue. I don't know how to insert GitHub emojis in the code section of the Markdown file.

POST /api/yo HTTP/1.1
Content-Type: :large_blue_circle:
[email protected]&message=Yo

:large_blue_circle: is 🔵.

The target of this question


Solution

  • Just use the emoji character itself in the code block, like this:

    POST /api/yo HTTP/1.1
    Content-Type: 🔵
    [email protected]&message=Yo