Skip to content

createMojiResolver

function createMojiResolver(options?): MojiResolver;

Defined in: resolver.ts:138

Build a resolver from options. Resolution order for a slug:

  1. the custom resolver function (if it returns a renderable def),
  2. the mojis map,
  3. the built-in defaults (unless includeDefaults: false). Slugs are matched case-insensitively. A definition is only returned if it actually carries a char or src (otherwise it is treated as unknown).
ParameterType
optionsCreateResolverOptions

MojiResolver