Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

connor-baer/rich-text-from-notion

Repository files navigation

rich-text-from-notion

A library to convert Notion page content to the Contentful Rich Text document format.

npm version Build Status codecov License MIT


rich-text-from-notion is in writing...

Some standout features include...

All this clocks in at around 3.7 kB gzipped.

⚠️ Requires Node >= 8.0.0.

Installation

Install @madebyconnor/rich-text-from-notion with your favorite package manager.

# yarn
yarn add @madebyconnor/rich-text-from-notion
# npm
npm install @madebyconnor/rich-text-from-notion

Getting started

@madebyconnor/rich-text-from-notion exports a function

import richTextFromNotion from '@madebyconnor/rich-text-from-notion';

richTextFromNotion(notionPageContent)

/*
    returns:

    rich text. duh! (in writing...)
 */

Getting the smallest possible bundle size

Many development conveniences are placed behind process.env.NODE_ENV !== "production" conditionals. When bundling your app, it's a good idea to replace these code snippets such that a minifier (like uglify) can sweep them away and leave a smaller overall bundle.

Here are instructions for some of the popular bundlers:

Changelog

See GitHub Releases.

About

A library to convert Notion page content to the Contentful Rich Text document format.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published