# markdown-to-notion

Latest version **0.1.1** (published 2023-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install markdown-to-notion
pnpm add markdown-to-notion
yarn add markdown-to-notion
bun add markdown-to-notion
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2023-02-23 |
| First published | 2023-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | GENYA |
| Maintainers | wilf |
| Keywords | notion, markdown |

## Links

- npm: https://www.npmjs.com/package/markdown-to-notion
- Repository: https://github.com/wilf312/markdown-to-notion
- Homepage: https://github.com/wilf312/markdown-to-notion#readme
- Issues: https://github.com/wilf312/markdown-to-notion/issues
- npm.io page: https://npm.io/package/markdown-to-notion

## Dependencies (4)

- [marked](https://npm.io/package/marked.md) ^4.2.12
- [prettier](https://npm.io/package/prettier.md) ^2.8.4
- [@types/marked](https://npm.io/package/@types/marked.md) ^4.0.8
- [@types/prettier](https://npm.io/package/@types/prettier.md) ^2.7.2

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2023-02-23
- 0.1.0 — 2023-02-15
- 0.0.5 — 2023-02-13
- 0.0.4 — 2023-02-13
- 0.0.3 — 2023-02-13
- 0.0.2 — 2023-02-13
- 0.0.1 — 2023-02-12
- 0.0.0 — 2023-02-12

## README

# markdown-to-notion


## マイグレーション / Migration
0.0.5 -> 0.1.0

runNotion -> lexer
runText -> parse

## 概要 / Description

このライブラリは notion API を叩くときに必要なページオブジェクトを markdown から生成するためのツールです。

This library is a tool for generating the necessary page objects when hitting the Notion API, from Markdown. In other words, using this library makes it easy to convert Markdown format data into Notion pages when calling the Notion API.

## このライブラリの使い方 / how to use

```
import { lexer, parse } from "markdown-to-notion";

const markdownText = `
# heading1
## heading2

* [ ] task1
* [x] task2
`

const notionObject = lexer(markdownText); // for Notion API
const notionObjectText = parse(markdownText); // for Text


notion.pages.create({
  parent: { database_id: YOUR_DATABASE_ID },
  properties: YOUR_PROPERTY,
  children: lexer(`
# Today task
* [ ] task1
* [ ] task2

## Happenings
*

`),
})

```

---
_Source: https://npm.io/package/markdown-to-notion · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
