Skip to content

Commit

Permalink
Merge pull request #1008 from glensc/emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc authored Mar 10, 2021
2 parents 4fc8a28 + 3249cdd commit 088c5e9
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
See [Upgrading] for details on how to upgrade.

- Fix: Remove post note debug, #1009
- Add emoji parsing to markdown areas, #1008

[3.9.12]: https://github.com/eventum/eventum/compare/v3.9.11...master

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"enrise/urihelper": "^1.0",
"ezyang/htmlpurifier": "^4.10",
"fonts/liberation": "*",
"giberti/commonmark-emoji-extension": "^0.2.0",
"glen/filename-normalizer": "^2.0",
"horde/text-flowed": "dev-patch-1 as 2.0.3",
"horde/util": "dev-patch-1 as 2.5.8",
Expand Down
62 changes: 61 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/ServiceProvider/MarkdownServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Eventum\EventDispatcher\EventManager;
use Eventum\Markdown;
use Eventum\Markdown\CommonMark\UserMentionGenerator;
use Giberti\EmojiExtension\EmojiExtension;
use HTMLPurifier;
use HTMLPurifier_HTML5Config;
use League\CommonMark\Block\Element\FencedCode;
Expand Down Expand Up @@ -126,6 +127,7 @@ private function applyExtensions(Environment $environment): void
$environment->addExtension(new AttributesExtension());
$environment->addExtension(new FootnoteExtension());
$environment->addExtension(new MentionExtension());
$environment->addExtension(new EmojiExtension());

// allow extensions to apply behaviour
$event = new GenericEvent($environment);
Expand Down
6 changes: 6 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@
"fonts/liberation": {
"version": "2.00.1"
},
"giberti/commonmark-emoji-extension": {
"version": "0.2"
},
"giberti/emoji-data": {
"version": "v0.1"
},
"glen/filename-normalizer": {
"version": "2.0.1"
},
Expand Down

0 comments on commit 088c5e9

Please sign in to comment.