File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -649,14 +649,20 @@ actual emoji thanks to the :ref:`emojify filter <reference-twig-filter-emojify>`
649
649
650
650
.. code-block :: twig
651
651
652
- {{ ':green-heart:|emojify }} {# renders: 💚 #}
653
- {{ ':green_salad:'|emojify('slack') }} {# renders: 🥗 #}
654
- {{ ':turtle:'|emojify('github') }} {# renders: 🐢 #}
655
- {{ ':kiwi:'|emojify('gitlab') }} {# renders: 🥝 #}
652
+ {{ 'I :green-heart: this' |emojify }} {# renders: I 💚 this #}
653
+ {{ ':green_salad: is nice '|emojify('slack') }} {# renders: 🥗 is nice #}
654
+ {{ 'My :turtle: has no name yet '|emojify('github') }} {# renders: My 🐢 has no name yet #}
655
+ {{ ':kiwi: is a great fruit '|emojify('gitlab') }} {# renders: 🥝 is a great fruit #}
656
656
657
657
{{ 'My :turtle: loves to eat :green_salad:'|emojify('slack') }}
658
658
{# renders: My 🐢 loves to eat 🥗 #}
659
659
660
+ {# if you are not sure about how the emojis were transliterated, you can
661
+ use the 'text' catalog, which merges Slack, GitHub and GitLab text codes #}
662
+ {{ 'I like :kiwi-fruit:'|emojify('text') }} {# renders: I like 🥝 #}
663
+ {{ 'I like :kiwi:'|emojify('text') }} {# renders: I like 🥝 #}
664
+ {{ 'I like :kiwifruit:'|emojify('text') }} {# renders: I like 🥝 #}
665
+
660
666
Removing Emojis
661
667
~~~~~~~~~~~~~~~
662
668
You can’t perform that action at this time.
0 commit comments