UNPKG

@mdast2docx/emoji

Version:

A plugin for @m2d/core that parses emoji shortcodes like :smile: and replaces them with their corresponding Unicode emoji characters for DOCX output.

16 lines (15 loc) 633 B
import { IPlugin } from "@m2d/core"; interface IEmojiPluginOptions { /** * A mapping of emoji shortcodes to their corresponding Unicode characters. * This allows for easy customization or extension of the emoji representation. */ emojis?: Record<string, string>; } /** * This plugin adds support for emoji shortcodes (e.g., `:smile:`, `:rocket:`) in your Markdown-to-DOCX * conversion pipeline. It replaces recognized emoji shortcodes with their corresponding Unicode * characters during the MDAST transformation. */ export declare const emojiPlugin: (options?: IEmojiPluginOptions) => IPlugin; export {};