为什么这样做

  • 在使主题以后,发现有很多问题,Markdown在使用中由于支持性问题也有很多问题无法使用完整的emoji主题。为了解决这个问题,我做了李霞操作。
  • 请大家仔细看

引入JS/CSS

  • 在footer中引入JS
<script src="https://cdn.bootcss.com/emojify.js/1.1.0/js/emojify.min.js"></script>
  • 在header中引入CSS
<link href="https://cdn.bootcss.com/emojify.js/1.1.0/css/basic/emojify.min.css" rel="stylesheet">
  • 在footer中加载emoji
<script type="text/javascript">
    emojify.setConfig({
        img_dir: "//cdn.bootcss.com/emojify.js/1.1.0/images/basic",
        blacklist: {
            'ids': [],
            'classes': ['no-emojify'],
            'elements': ['^script$', '^textarea$', '^pre$', '^code$']
        },
    });
    emojify.run();
</script>

测试

  • 就这样理论上就可以完整使用了,不要问我为什么是理论上。 :grimacing: :confused: :hushed: :expressionless: :unamused: :sweat_smile::sun_with_face: :full_moon_with_face: :new_moon_with_face: :new_moon: :jp: :kr: :cn: :us: :large_blue_circle: :libra: :scorpius: :sagittarius: :capricorn: