Skip to content

Commit b7c2ab2

Browse files
committed
Update some examples
1 parent fde81e6 commit b7c2ab2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

string.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,20 @@ actual emoji thanks to the :ref:`emojify filter <reference-twig-filter-emojify>`
649649

650650
.. code-block:: twig
651651
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 #}
656656
657657
{{ 'My :turtle: loves to eat :green_salad:'|emojify('slack') }}
658658
{# renders: My 🐢 loves to eat 🥗 #}
659659
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+
660666
Removing Emojis
661667
~~~~~~~~~~~~~~~
662668

0 commit comments

Comments
 (0)