Hexo Markdown 支持 Emoji

前言

让你的 Hexo Markdown 编辑器支持 Emoji 表情

更换 markdown 引擎

使用https://github.com/hexojs/hexo-renderer-markdown-it 引擎,执行如下命令更新:

1
2
3
$ npm un hexo-renderer-marked --save
$ npm i hexo-renderer-markdown-it --save
$ npm install markdown-it-emoji --save

编辑站点配置文件 _config.yml 增加配置项:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## markdown 渲染引擎配置,默认是hexo-renderer-marked,这个插件渲染速度更快,且有新特性
markdown:
render:
html: true
xhtmlOut: false
breaks: true
linkify: true
typographer: true
quotes: '“”‘’'
plugins:
- markdown-it-footnote
- markdown-it-sup
- markdown-it-sub
- markdown-it-abbr
- markdown-it-emoji
anchors:
level: 2
collisionSuffix: 'v'
permalink: true
permalinkClass: header-anchor
permalinkSymbol:

Emoji Code

emojicodeemojicodeemojicodeemojicode
:bowtie::bowtie:😡:rage:👊:punch:😼:smirk_cat:
😄:smile:😤:triumph:👊:facepunch:🙀:scream_cat:
🙂:slightly_smiling_face:😪:sleepy::fist:😿:crying_cat_face:
😆:laughing:😋:yum:✌️:v:😹:joy_cat:
😊:blush:😷:mask:👋:wave:😾:pouting_cat:
😃:smiley:😎:sunglasses::hand:👹:japanese_ogre:
☺️:relaxed:😵:dizzy_face::raised_hand:👺:japanese_goblin:
😏:smirk:👿:imp:👐:open_hands:🙈:see_no_evil:
😍:heart_eyes:😈:smiling_imp:☝️:point_up:🙉:hear_no_evil:
😘:kissing_heart:😐:neutral_face:👇:point_down:🙊:speak_no_evil:
😚:kissing_closed_eyes:😶:no_mouth:👈:point_left:💂:guardsman:
😳:flushed:😇:innocent:👉:point_right:💀:skull:
😌:relieved:👽:alien:🙌:raised_hands:🐾:feet:
😆:satisfied:💛:yellow_heart:🙏:pray:👄:lips:
😁:grin:💙:blue_heart:👆:point_up_2:💋:kiss:
😉:wink:💜:purple_heart:👏:clap:💧:droplet:
😜:stuck_out_tongue_winking_eye:❤️:heart:👭:two_women_holding_hands:👂:ear:
😝:stuck_out_tongue_closed_eyes:💚:green_heart:💃:dancer:👀:eyes:
😀:grinning:💔:broken_heart:👯:dancers:👃:nose:
😗:kissing:💓:heartbeat:🙆:ok_woman:👅:tongue:
😙:kissing_smiling_eyes:💗:heartpulse:🙅:no_good:💌:love_letter:
😛:stuck_out_tongue:💕:two_hearts:💁:information_desk_person:👤:bust_in_silhouette:
😴:sleeping:💞:revolving_hearts:🙋:raising_hand:👥:busts_in_silhouette:
😟:worried:💘:cupid:👰:bride_with_veil:💬:speech_balloon:
😦:frowning:💖:sparkling_heart:🙎:person_with_pouting_face:💭:thought_balloon:
😔:pensive:💤:zzz:👶:baby:☀️:sunny:
😞:disappointed:💨:dash:👵:older_woman:☔️:umbrella:
😖:confounded:💦:sweat_drops:👴:older_man:☁️:cloud:
😨:fearful:🎶:notes:👱:person_with_blond_hair:❄️:snowflake:
😰:cold_sweat:🎵:musical_note:👲:man_with_gua_pi_mao:⛄️:snowman:
😣:persevere:🔥:fire:👳:man_with_turban:⚡️:zap:
😢:cry:💩:hankey:👷:construction_worker:🌀:cyclone:
😭:sob:💩:poop:👮:cop:🌁:foggy:
😂:joy:💩:shit:👼:angel:🌊:ocean:
😲:astonished::+1:+1👸:princess:🐱:cat:
😱:scream:👍:thumbsup:😺:smiley_cat:🐶:dog:
:neckbeard::neckbeard::-1:-1😸:smile_cat:🐭:mouse:
😫:tired_face:👎:thumbsdown:😻:heart_eyes_cat:🐹:hamster:
😠:angry:👌:ok_hand:😽:kissing_cat:🐰:rabbit:
🐺:wolf:🐳:whale:🍂:fallen_leaf:🍂🎍:bamboo:
🐸:frog:🐋:whale2:🌿:herb:🌿💝:gift_heart:
🐯:tiger:🐬:dolphin:🍄:mushroom:🍄🎎:dolls:
🐨:koala:🐄:cow2:🌵:cactus:🌵🎒:school_satchel:
🐻:bear:🐏:ram:🌴:palm_tree:🌴🎓:mortar_board:
🐷:pig:🐀:rat:🌲:evergreen_tree:🌲🎏:flags:
🐽:pig_nose:🐃:water_buffalo:🌳:deciduous_tree:🌳🎆:fireworks:
🐮:cow:🐅:tiger2:🌰:chestnut:🌰🎇:sparkler:
🐗:boar:🐇:rabbit2:🌱:seedling:🌱🎐:wind_chime:
🐵:monkey_face:🐉:dragon:🌼:blossom:🌼🎑:rice_scene:
🐒:monkey:🐐:goat:🌾:ear_of_rice:🌾🎃:jack_o_lantern:
🐴:horse:🐓:rooster:🐚:shell:🐚👻:ghost:
🐎:racehorse:🐕:dog2:🌐:globe_with_meridians:🌐🎅:santa:
🐫:camel:🐖:pig2:🌞:sun_with_face:🌞🎄:christmas_tree:
🐑:sheep:🐁:mouse2:🌝:full_moon_with_face:🌝🎁:gift:
🐘:elephant:🐂:ox:🌚:new_moon_with_face:🌚🔔:bell:
🐼:panda_face:🐲:dragon_face:🌑:new_moon:🌑🔕:no_bell:
🐍:snake:🐡:blowfish:🌒:waxing_crescent_moon:🌒🎋:tanabata_tree:
🐦:bird:🐊:crocodile:🌓:first_quarter_moon:🌓🎉:tada:
🐤:baby_chick:🐪:dromedary_camel:🌔:waxing_gibbous_moon:🌔🎊:confetti_ball:
🐥:hatched_chick:🐆:leopard:🌕:full_moon:🌕🎈:balloon:
🐣:hatching_chick:🐈:cat2:🌖:waning_gibbous_moon:🌖🔮:crystal_ball:
🐔:chicken:🐩:poodle:🌗:last_quarter_moon:🌗💿:cd:
🐧:penguin:🐾:paw_prints:🌘:waning_crescent_moon:🌘📀:dvd:
🐢:turtle:💐:bouquet:🌜:last_quarter_moon_with_face:🌜💾:floppy_disk:
🐛:bug:🌸:cherry_blossom:🌛:first_quarter_moon_with_face:🌛📷:camera:
🐝:honeybee:🌷:tulip:🌙:crescent_moon:🌙📹:video_camera:
🐜:ant:🍀:four_leaf_clover:🌍:earth_africa:🌍🎥:movie_camera:
🐞:beetle:🌹:rose:🌎:earth_americas:🌎💻:computer:
🐌:snail:🌻:sunflower:🌏:earth_asia:🌏📺:tv:
🐙:octopus:🌺:hibiscus:🌋:volcano:🌋📱:iphone:
🐠:tropical_fish:🍁:maple_leaf:🌌:milky_way:🌌☎️:phone:
🐟:fish:🍃:leaves:⛅️:partly_sunny:⛅️☎️:telephone:
📞:telephone_receiver:✏️:pencil2:👓:eyeglasses:🗻:mount_fuji:
📟:pager:📏:straight_ruler:🎣:fishing_pole_and_fish:🌄:sunrise_over_mountains:
📠:fax:📐:triangular_ruler:☕️:coffee:🌅:sunrise:
💽:minidisc:📕:closed_book:🍵:tea:🌠:stars:
📼:vhs:📗:green_book:🍶:sake:🗽:statue_of_liberty:
🔉:sound:📘:blue_book:🍼:baby_bottle:🌉:bridge_at_night:
🔈:speaker:📙:orange_book:🍺:beer:🎠:carousel_horse:
🔇:mute:📓:notebook:🍻:beers:🌈:rainbow:
📢:loudspeaker:📔:notebook_with_decorative_cover:🍸:cocktail:🎡:ferris_wheel:
📣:mega:📒:ledger:🍹:tropical_drink:⛲️:fountain:
⌛️:hourglass:📚:books:🍷:wine_glass:🎢:roller_coaster:
:hourglass_flowing_sand:🔖:bookmark:🍴:fork_and_knife:🚢:ship:
:alarm_clock:📛:name_badge:🍕:pizza:🚤:speedboat:
⌚️:watch:🔬:microscope:🍔:hamburger:⛵️:boat:
📻:radio:🔭:telescope:🍟:fries:⛵️:sailboat:
📡:satellite:📰:newspaper:🍗:poultry_leg:🚣:rowboat:
:loop:🏈:football:🍖:meat_on_bone:⚓️:anchor:
🔍:mag:🏀:basketball:🍝:spaghetti:🚀:rocket:
🔎:mag_right:⚽️:soccer:🍛:curry:✈️:airplane:
🔓:unlock:⚾️:baseball:🍤:fried_shrimp:🚁:helicopter:
🔒:lock:🎾:tennis:🍱:bento:🚂:steam_locomotive:
🔏:lock_with_ink_pen:🎱:8ball:🍣:sushi:🚊:tram:
🔐:closed_lock_with_key:🏉:rugby_football:🍥:fish_cake:🚞:mountain_railway:
🔑:key:🎳:bowling:🍙:rice_ball:🚲:bike:
💡:bulb:⛳️:golf:🍘:rice_cracker:🚡:aerial_tramway:
🔦:flashlight:🚵:mountain_bicyclist:🍚:rice:🚟:suspension_railway:
🔆:high_brightness:🚴:bicyclist:🍜:ramen:🚠:mountain_cableway:
🔅:low_brightness:🏇:horse_racing:🍲:stew:🚜:tractor:
🔌:electric_plug:🏂:snowboarder:🍢:oden:🚙:blue_car:
🔋:battery:🏊:swimmer:🍡:dango:🚘:oncoming_automobile:
📲:calling:🏄:surfer:🥚:egg:🚗:car:
✉️:email:🎿:ski:🍞:bread:🚗:red_car:
📫:mailbox:♠️:spades:🍩:doughnut:🚕:taxi:
📮:postbox:♥️:hearts:🍮:custard:🚖:oncoming_taxi:
🛀:bath:♣️:clubs:🍦:icecream:🚛:articulated_lorry:
🛁:bathtub:♦️:diamonds:🍨:ice_cream:🚌:bus:
🚿:shower:💎:gem:🍧:shaved_ice:🚍:oncoming_bus:
🚽:toilet:💍:ring:🎂:birthday:🚨:rotating_light:
🔧:wrench:🏆:trophy:🍰:cake:🚓:police_car:
🔩:nut_and_bolt:🎼:musical_score:🍪:cookie:🚔:oncoming_police_car:
🔨:hammer:🎹:musical_keyboard:🍫:chocolate_bar:🚒:fire_engine:
💺:seat:🎻:violin:🍬:candy:🚑:ambulance:
💰:moneybag:👾:space_invader:🍭:lollipop:🚐:minibus:
💴:yen:🎮:video_game:🍯:honey_pot:🚚:truck:
💵:dollar:🃏:black_joker:🍎:apple:🚋:train:
💷:pound:🎴:flower_playing_cards:🍏:green_apple:🚉:station:
💶:euro:🎲:game_die:🍊:tangerine:🚆:train2:
💳:credit_card:🎯:dart:🍋:lemon:🚅:bullettrain_front:
💸:money_with_wings:🀄️:mahjong:🍒:cherries:🚄:bullettrain_side:
📧:e-mail:🎬:clapper:🍇:grapes:🚈:light_rail:
📥:inbox_tray:📝:memo:🍉:watermelon:🚝:monorail:
📤:outbox_tray:📝:pencil:🍓:strawberry:🚃:railway_car:
✉️:envelope:📖:book:🍑:peach:🚎:trolleybus:
📨:incoming_envelope:🎨:art:🍈:melon:🎫:ticket:
📯:postal_horn:🎤:microphone:🍌:banana:⛽️:fuelpump:
📪:mailbox_closed:🎧:headphones:🍐:pear:🚦:vertical_traffic_light:
📬:mailbox_with_mail:🎺:trumpet:🍍:pineapple:🚥:traffic_light:
📭:mailbox_with_no_mail:🎷:saxophone:🍠:sweet_potato:⚠️:warning:
📦:package:🎸:guitar:🍆:eggplant:🚧:construction:
🚪:door:👞:shoe:🍅:tomato:🔰:beginner:
🚬:smoking:👡:sandal:🌽:corn:🏧:atm:
💣:bomb:👠:high_heel:🏠:house:🎰:slot_machine:
🔫:gun:💄:lipstick:🏡:house_with_garden:🚏:busstop:
🔪:hocho:👢:boot:🏫:school:💈:barber:
💊:pill:👕:shirt:🏢:office:♨️:hotsprings:
💉:syringe:👕:tshirt:🏣:post_office:🏁:checkered_flag:
📄:page_facing_up:👔:necktie:🏥:hospital:🎌:crossed_flags:
📃:page_with_curl:👚:womans_clothes:🏦:bank:🏮:izakaya_lantern:
📑:bookmark_tabs:👗:dress:🏪:convenience_store:🗿:moyai:
📊:bar_chart:🎽:running_shirt_with_sash:🏩:love_hotel:🎪:circus_tent:
📈:chart_with_upwards_trend:👖:jeans:🏨:hotel:🎭:performing_arts:
📉:chart_with_downwards_trend:👘:kimono:💒:wedding:📍:round_pushpin:
📜:scroll:👙:bikini:⛪️:church:🚩:triangular_flag_on_post:
📋:clipboard:🎀:ribbon:🏬:department_store:🇯🇵:jp:
📆:calendar:🎩:tophat:🏤:european_post_office:🇰🇷:kr:
📅:date:👑:crown:🌇:city_sunrise:🇨🇳:cn:
📇:card_index:👒:womans_hat:🌆:city_sunset:🇺🇸:us:
📁:file_folder:👞:mans_shoe:🏯:japanese_castle:🇫🇷:fr:
📂:open_file_folder:🌂:closed_umbrella:🏰:european_castle:🇪🇸:es:
✂️:scissors:💼:briefcase:⛺️:tent:🇮🇹:it:
📌:pushpin:👜:handbag:🏭:factory:🇷🇺:ru:
📎:paperclip:👝:pouch:🗼:tokyo_tower:🇬🇧:gb:
✒️:black_nib:👛:purse:🗾:japan:🇬🇧:uk:
😧:anguished::sparkles:🙍:person_frowning:😬:grimacing:
🌟:star2:😮:open_mouth:⭐️:star:🙇:bow:
😕:confused:💫:dizzy:💑:couple_with_heart:😯:hushed:
💥:boom:💆:massage:😑:expressionless:💥:collision:
💇:haircut:😒:unamused:💢:anger:💅:nail_care:
😅:sweat_smile:❗️:exclamation:👦:boy:😓:sweat:
:question:👧:girl:😥:disappointed_relieved:👨:man:
:grey_exclamation:👩:woman:😩:weary::grey_question:
----本文结束 感谢您的阅读----