0.1.1 • Published 1 year ago

markdown-to-notion v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
*

`),
})
0.1.1

1 year ago

0.1.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago

1.0.0

3 years ago