Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unicode in Github markdown

I just made a failed attempt to put unicode in Github markdown (in a README.md file) in my project.

I tried this:

(U+262E) 

but it was not interpreted as unicode. Is there a way to put unicode characters in Github markdown?

like image 232
Alexander Mills Avatar asked Dec 30 '15 23:12

Alexander Mills


People also ask

How do I write Unicode in markdown?

You can specify any Unicode character using the hex formulation, like "✓" or the decimal formulation, like "✓". Thank you, Alexander, I can now use emoji in our Markdown-powered wiki.

Is utf 8 Unicode?

UTF-8 is a Unicode character encoding method. This means that UTF-8 takes the code point for a given Unicode character and translates it into a string of binary. It also does the reverse, reading in binary digits and converting them back to characters.

What is Unicode character?

Unicode is an international character encoding standard that provides a unique number for every character across languages and scripts, making almost all characters accessible across platforms, programs, and devices.

How do I add Emojis to markdown file?

In most cases, you can simply copy an emoji from a source like Emojipedia and paste it into your document. Many Markdown applications will automatically display the emoji in the Markdown-formatted text. The HTML and PDF files you export from your Markdown application should display the emoji.


2 Answers

I believe the correct answer is to use unicode characters of the following (decimal) form

► ˿ ॠ 

the above become:

► ˿ ॠ

Try it for yourself on Github and see. You have to paste the raw character strings, not the unicode symbol itself. It's not about what shows up in your editor, it's what actually displays on github.com.

like image 176
Alexander Mills Avatar answered Sep 22 '22 19:09

Alexander Mills


There's no special syntax, just use the character directly... ☮.

like image 23
一二三 Avatar answered Sep 22 '22 19:09

一二三