浏览量: 314 次浏览

markdown有趣用法

2019年10月3日 0 作者 Nie Hen

使用表情

小书匠使用表情官方博客 链接

module.exports = {
angry: [ ‘>:(‘, ‘>:-(‘ ],
blush: [ ‘:”)’, ‘:-“)’ ],
broken_heart: [ ‘</3’, ‘<\3’ ],
// :\ and :-\ not used because of conflict with markdown escaping
confused: [ ‘:/’, ‘:-/’ ], // twemoji shows question
cry: [ “:'(“, “:’-(“, ‘:,(‘, ‘:,-(‘ ],
frowning: [ ‘:(‘, ‘:-(‘ ],
heart: [ ‘<3’ ],
imp: [ ‘]:(‘, ‘]:-(‘ ],
innocent: [ ‘o:)’, ‘O:)’, ‘o:-)’, ‘O:-)’, ‘0:)’, ‘0:-)’ ],
joy: [ “:’)”, “:’-)”, ‘:,)’, ‘:,-)’, “:’D”, “:’-D”, ‘:,D’, ‘:,-D’ ],
kissing: [ ‘:‘, ‘:-‘ ],
laughing: [ ‘x-)’, ‘X-)’ ],
neutral_face: [ ‘:|’, ‘:-|’ ],
open_mouth: [ ‘:o’, ‘:-o’, ‘:O’, ‘:-O’ ],
rage: [ ‘:@’, ‘:-@’ ],
smile: [ ‘:D’, ‘:-D’ ],
smiley: [ ‘:)’, ‘:-)’ ],
smiling_imp: [ ‘]:)’, ‘]:-)’ ],
sob: [ “:,'(“, “:,’-(“, ‘;(‘, ‘;-(‘ ],
stuck_out_tongue: [ ‘:P’, ‘:-P’ ],
sunglasses: [ ‘8-)’, ‘B-)’ ],
sweat: [ ‘,:(‘, ‘,:-(‘ ],
sweat_smile: [ ‘,:)’, ‘,:-)’ ],
unamused: [ ‘:s’, ‘:-S’, ‘:z’, ‘:-Z’, ‘:‘, ‘:-‘ ],
wink: [ ‘;)’, ‘;-)’ ]
};

另一种使用方式:
英文拼音 前加引号后加引号
😉
:angry:
:sob:
:confused:

:heart:

:innocent:
:joy:
:kissing:
:laughing:
:neutral_face:
:open_mouth:
:rage:
🙂
:smiley:
:sob:
:stuck_out_tongue:
:sunglasses:
:sweat:
:sweat_smile:
:unamused:
😉
(在文章编辑器里面还能显示,到了更新显示就有些表情显示不出来了)
image.png

索引语法

  半方大的空白 或 半方大的空白

 全方大的空白 或 全方大的空白

 不断行的空白格 或 不断行的空白格

  测试1

代码

代码段
输入反引号 在esc键下面的键

asdf

短代码段
在每行代码前加入4个空格或者添加一个制表符(TAB键)