BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.48k stars 1.95k forks source link

Markdown - Emoji-Support #929

Open david-jointech opened 6 years ago

david-jointech commented 6 years ago

Emoji-Support with this syntax https://www.webpagefx.com/tools/emoji-cheat-sheet/ would be nice.

itsalb3rt commented 3 years ago

I am with you friend! đź‘Ť

jjasghar commented 3 years ago

It looks like https://www.bookstackapp.com/docs/admin/ut8mb4-support/ is possible, but I think that's just inputting the actual emoji, not the :+1 or whatever.

ssddanbrown commented 3 years ago

@jjasghar Yeah, You should be able to already use emoji, Especially if you've created your instance in the last few years. We just don't support the specifically requested syntax, since I'm hesitant due to it not being a particular standard. I think both MacOS and Windows have built-in emoji pickers, Not so common in linux distros yet but there are apps or browser plugins available.

jjasghar commented 3 years ago

Ah nice, just as I thought.

I understand the hesitation about the “:blah:” syntax/standard, but I think it’s safe to say it’s won out in emoji war. I don’t know anyone whoever thinks “(blah)” (the hipchat?) formatting anymore.

I know little to nothing about php, but someone has to have created a drop in converter right?

ssddanbrown commented 3 years ago

You could add something like this to the "Custom HTML Head Content" setting:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/css/basic/emojify.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/js/emojify.min.js"></script>
<script>
window.addEventListener('DOMContentLoaded', () => {
    emojify.setConfig({img_dir: 'https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/images/basic/'});
    emojify.run(document.querySelector('.page-content'));
});
</script>

Note, this won't show them in the editor no provide any kind of "selector" interface. Also, the library used is no longer maintained.

delacor commented 1 year ago

Any news on this ?