JS package template

Usage no npm install needed!

<script type="module">
  import madebyconnorRichTextFromNotion from 'https://cdn.skypack.dev/@madebyconnor/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.


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';



    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:


See GitHub Releases.