You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`emoji_index` | function | `emojione` index | A function that returns the index to use when parsing `:short_name:` syntax. See [Default Emoji Indexes](#default-emoji-indexes) to see the provided indexes.
502
502
`emoji_generator`| function | `to_png` generator | A function that takes the emoji info and constructs the desired emoji output. See [Default Emoji Generators](#default-emoji-generators) to see the provided generators.
503
-
`title`| string | `#!py3thon 'short'` | Specifies the title format that is fed into the emoji generator function. Can either be `long` which is the long description of the emoji, `short` which is the short name (`:short:`), or `none` which will simply pass `None`.
504
-
`alt`| string | `#!py3thon 'unicode'` | Specifies the format for the alt value that is passed to the emoji generator function. If `alt` is set to `short`, the short name will be passed to the generator. If `alt` is set to `unicode` the Unicode characters are passed to the generator. Lastly, if `alt` is set to `html_entity`, the Unicode characters are passed encoded as HTML entities.
505
-
`remove_variation_selector`| bool | `#!py3thon False` | Specifies whether variation selectors should be removed from Unicode alt. Currently, only `fe0f` is removed as it is the only one presently found in the current emoji sets.
506
-
`options`| dictionary | `#!py3thon {}` | Options that are specific to emoji generator functions. Supported parameters can vary from function to function.
503
+
`title`| string | `#!python 'short'` | Specifies the title format that is fed into the emoji generator function. Can either be `long` which is the long description of the emoji, `short` which is the short name (`:short:`), or `none` which will simply pass `None`.
504
+
`alt`| string | `#!python 'unicode'` | Specifies the format for the alt value that is passed to the emoji generator function. If `alt` is set to `short`, the short name will be passed to the generator. If `alt` is set to `unicode` the Unicode characters are passed to the generator. Lastly, if `alt` is set to `html_entity`, the Unicode characters are passed encoded as HTML entities.
505
+
`remove_variation_selector`| bool | `#!python False` | Specifies whether variation selectors should be removed from Unicode alt. Currently, only `fe0f` is removed as it is the only one presently found in the current emoji sets.
506
+
`options`| dictionary | `#!python {}` | Options that are specific to emoji generator functions. Supported parameters can vary from function to function.
507
+
`strict`| bool | `#!python False` | Raise an exception if an emoji is used whose name is not found in the database.
507
508
508
509
/// new | New 7.1
509
510
`options`is now shared between index and generator functions opposed to being passed to the generator function
510
511
only. The generator and/or index function should decide which of the arguments are relevant for its usage and parse
511
512
accordingly.
512
513
///
513
514
515
+
/// new | New 10.12
516
+
Added `strict` mode.
517
+
///
518
+
514
519
/// tip | Legacy GitHubEmoji Emulation
515
520
The Emoji extension was actually created to replace the now retired GitHubEmoji extension. Emoji was written to be
516
521
much more flexible. If you have a desire to configure the output to be like the legacy GitHubEmoji extension, you
0 commit comments