πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

@m2d/mdast

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@m2d/mdast

Extended MDAST types and custom node data for mdast2docx with support for DOCX formatting.

0.1.4
latest
Source
npm
Version published
Weekly downloads
1.3K
11.5%
Maintainers
1
Weekly downloads
Β 
Created
Source

@m2d/mdast

test Maintainability codecov Version Downloads npm bundle size

Emoji shortcode support for mdast2docx

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.

✨ Features

  • Converts emoji shortcodes to Unicode emojis (e.g., :tada: β†’ πŸŽ‰)
  • Compatible with @m2d/core
  • Works seamlessly within the mdast2docx plugin ecosystem
  • Easy to integrate and lightweight

πŸ“¦ Installation

pnpm install @m2d/mdast

or

yarn add @m2d/mdast

or

npm add @m2d/mdast

🧠 How It Works

This plugin scans all text nodes for emoji shortcodes (e.g., :fire:, :sparkles:) and replaces them with matching Unicode emojis using a predefined emoji JSON mapping.

πŸ” Emoji Support

It uses the GitHub-style emoji shortcodes and more β€” if a shortcode is not recognized, it will remain unchanged.

πŸ› οΈ Development

# Clone and install dependencies
git clone https://github.com/md2docx/emoji-plugin
cd emoji-plugin
npm install

# Build / Test / Dev
npm run build

πŸ“„ License

Licensed under the MPL-2.0 License.

⭐ Support Us

If you find this useful:

Made with πŸ’– by Mayank Kumar Chaudhari

Keywords

mdast

FAQs

Package last updated on 19 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts