Skip to content

Commit b752e01

Browse files
committed
Add section for emoji
1 parent 41103e6 commit b752e01

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

manuscript/chapter4.md

+23
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,29 @@ The rendered output looks like this:
360360

361361
![Task list](images/tasklist.png)
362362

363+
## Emoji
364+
365+
There are two ways to add emoji to Markdown files: copy and paste the emoji into your Markdown-formatted text, or type *emoji shortcodes*.
366+
367+
### Copying and Pasting Emoji
368+
369+
In most cases, you can simply copy an emoji from a source like [Emojipedia](https://emojipedia.org/) 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.
370+
371+
T> If you're using a static site generator, make sure you [encode HTML pages as UTF-8](https://www.w3.org/International/tutorials/tutorial-char-enc/).
372+
373+
### Using Emoji Shortcodes
374+
375+
Some Markdown applications allow you to insert emoji by typing emoji shortcodes. These begin and end with a colon and include the name of an emoji.
376+
377+
{title="Markdown"}
378+
~~~~~~~
379+
Gone camping! :tent: Be back soon.
380+
381+
That is so funny! :joy:
382+
~~~~~~~
383+
384+
I> You can use this [list of emoji shortcodes](https://gist.github.com/rxaviers/7360908), but keep in mind that emoji shortcodes vary from application to application. Refer to your Markdown application's documentation for more information.
385+
363386
## Automatic URL Linking
364387

365388
Many Markdown processors automatically turn URLs into links. That means if you type http://www.example.com, your Markdown processor will automatically turn it into a link even though you haven’t [used brackets](#links).

0 commit comments

Comments
 (0)