Skip to content

This repository serves as a starting point for building plugins that extend the functionality of mdast2docx and @m2d/remark-docx.

License

Notifications You must be signed in to change notification settings

md2docx/md2docx-plugin-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🧩 Plugin Template for mdast2docx & @m2d/remark-docx

test Maintainability codecov Version Downloads npm bundle size

This repository serves as a starting point for building plugins that extend the functionality of mdast2docx, @m2d/core and @m2d/remark-docx.

Features

This template offers the following pre-configured features. Additionally, your repository will automatically be re-branded with the help of workflows and post-install scripts.

βœ… Monorepo powered by Turborepo and GitHub actions for automating building, testing, and deploying your plugin library

βœ… Examples with Next.js, and Vite to showcase how your library can be utilized, also helps in quick manual testing

βœ… Examples pre-configured for Light/Dark theme based on user preference

βœ… Examples ready to be deployed to Vercel

βœ… Code of Conduct and contributing files, ready for customization

βœ… Prettier and linter configured according to modern best practices (Feel free to add your flavor)

βœ… Recommended VSCode extensions - Prettier and Kanban board for code formatting and project management directly within your IDE

βœ… Test setup with Vitest - A modern and fast testing framework supporting Jest-like APIs

βœ… Workflows to automate testing on every pull-request or code push event

βœ… Workflow to automatically publish and create GitHub releases when you update your library's package.json file.

βœ… Workflow to automatically rebrand the entire template based on your repository name. (Refer TODO.md)

βœ… Plus, this repo includes a quick checklist for configuring Codecov and other badges, setting up your docs website on GitHub pages, and more. See Checklist or open TKB(Workspace) if you have installed the Trello-Kanban-Board extension.

Star this repository and share it with your friends.


Getting Started:

This template is based on Turborepo Template. But this one is optimized for md2docx plugins. It includes pre-configured unit-tests, a lot of extra stuff provided by the turborepo-template is removed, and comes with dependencies and scripts optimized for md2docx plugin development.

To get started, simply click on the "Use this template" button to create a new repository based on this template, and install dependencies. Customize it according to your requirements for your next md2docx plugin.

For detailed instructions and a checklist, please refer to TODO.md.

🀩 Don't forget to star this repository!

Looking for a hands-on course to get started with Turborepo? Check out React and Next.js with TypeScript and The Game of Chess with Next.js, React, and TypeScript


🧰 Helpful References


πŸ’‘ Derive Ideas from existing Plugins

  • @m2d/math: Parse math blocks and convert to equation DOCX
  • @m2d/image: Convert Markdown/HTML images to inline DOCX images
  • @m2d/html: Parse raw HTML into extended MDAST with styles
  • @m2d/table: Advanced table support with merged cells, widths, styles

πŸ™Œ Contribute

If you’re building a plugin you'd like to share, let us know or open a PR in the mdast2docx plugins repo!

Enrolling in our courses or sponsor our work.


with πŸ’– by Mayank Kumar Chaudhari

About

This repository serves as a starting point for building plugins that extend the functionality of mdast2docx and @m2d/remark-docx.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published