@mdast2docx/remark-docx
Version:
A unified plugin to prepare MDAST trees for DOCX conversion using mdast2docx.
2 lines (1 loc) • 407 B
JavaScript
import{toDocx as r}from"mdast2docx";import{htmlPlugin as e,imagePlugin as p,tablePlugin as m,listPlugin as l,mathPlugin as P,emojiPlugin as s,mermaidPlugin as g}from"mdast2docx/dist/plugins";var i=[e(),g(),m(),l(),P(),s(),p()],y=function(u="blob",n={},o={}){return this.compiler=function(t){return o.plugins||(o.plugins=typeof window=="undefined"?i.slice(2,-1):i),r(t,n,o,u)},t=>t};export{y as remarkDocx};