0.0.4 • Published 3 months ago

@lancejpollard/md2docx v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

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

0.0.4

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago