深度阅读

How to add an emoji in Markdown?

作者
作者
2023年08月22日
更新时间
9.71 分钟
阅读时间
0
阅读量

To add an emoji in Markdown, you can use emoji shortcodes or copy and paste the emoji into your Markdown-formatted text. Here’s how:

  1. Using emoji shortcodes:
    To use an emoji shortcode, simply put a colon ‘:’ around the name of the emoji. For example, to add a smiley face in your Markdown, type :smiley:. Markdown will automatically convert this to an emoji image when rendered. Here’s an example:
I am feeling :smiley: today!

This will result in the following output: “I am feeling ???? today!”

  1. Copy and paste:
    If you have an emoji that you want to add to your Markdown file, you can simply copy and paste it into your text. For example:
I am feeling ???? today!

This will result in the following output: “I am feeling ???? today!”

Note that depending on the platform you’re using, the exact method for adding emojis may vary. Additionally, some platforms may not support emoji shortcodes, so copy and paste may be the only option.

相关标签

博客作者

热爱技术,乐于分享,持续学习。专注于Web开发、系统架构设计和人工智能领域。