@lancejpollard/md2docx

0.0.4 • Public • Published







@lancejpollard/md2docx.js

Mardown to DOCX in TypeScript




Status

This is a new project and I need some help with styling it to look nice, haven't fully figured out the docx API. But it is a pretty good start!

Installation

pnpm install @lancejpollard/md2docx

Usage

import md2docx from '@lancejpollard/md2docx'
import fs from 'fs'

md2docx(
  `# Hello World

I am some text.

- a list item
- a second list item

I am a [link](https://google.com). And _italics_ and **bold**.

_**bold with italics**_.

- nested list
  - list item
  - numbered
    1. one
    2. two

1. a
2. b

- **some bold _italics_**

## **h2 _italics_** and more

`,
  'buffer',
).then(buffer => {
  fs.writeFileSync('test/md.docx', buffer)
})

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @lancejpollard/md2docx

Weekly Downloads

10

Version

0.0.4

License

none

Unpacked Size

55.6 kB

Total Files

9

Last publish

Collaborators

  • lancejpollard