Unicode in Github markdown

GithubUnicodeMarkdownGithub Flavored-Markdown

Github Problem Overview


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?

Github Solutions


Solution 1 - Github

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.

Solution 2 - Github

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

Solution 3 - Github

You can use either decimal or hex code point or HTML entity name (if exists) of a unicode character:

€ € €

displays as

€ € €

Solution 4 - Github

This is not the complete answer that OP was asking for, but in case you want emojis for GitHub purposes there is a gist here outlining how to input them. The basic idea is just that you would input :smile: into your markdown and that would produce a smiley face. Other commands are listed in the gist

Solution 5 - Github

If your editor saves text files in utf8 encoding with a BOM byte-order-mark, then unicode characters that you cut-and-paste seem to be rendered OK.

Solution 6 - Github

If unicode symbols are required in the code block in Github, then instead of using ``` block use <pre> block.

Replace

```
Some text: &#x2718;
Some text: &#x2713;
```

With

<pre>
Some text: &#x2718;
Some text: &#x2713;
</pre

Solution 7 - Github

Using visual studio code Ver.1.62.2, &alpha; &beta; &Alpha; &Beta; was correctly rendered in markdown preview window.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAlexander MillsView Question on Stackoverflow
Solution 1 - GithubAlexander MillsView Answer on Stackoverflow
Solution 2 - Github一二三View Answer on Stackoverflow
Solution 3 - GithubIlyichView Answer on Stackoverflow
Solution 4 - GithubGregView Answer on Stackoverflow
Solution 5 - GithubshathawayView Answer on Stackoverflow
Solution 6 - GithubNSaranView Answer on Stackoverflow
Solution 7 - GithubYoshinao TakadaView Answer on Stackoverflow