npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-notion-markdown

v1.1.0

Published

n8n nodes for Notion blocks and Markdown conversion

Downloads

201

Readme

Banner image

Notion Markdown Node

The Notion Markdown Node is a custom node for n8n that allows you to convert between Markdown and Notion blocks. This node is particularly useful for integrating Markdown content with Notion or extracting Notion content as Markdown.

Author's Note

I initially started using the minhlucvan/n8n-nodes-notionmd project, but realized that while it supported Markdown to Notion conversion, the Notion to Markdown functionality was incomplete. The purpose of this project is to provide a more comprehensive solution that fully supports bidirectional conversion between Markdown and Notion blocks, addressing the limitations of the original implementation.

Features

  • Convert Markdown to Notion blocks
  • Convert Notion blocks to Markdown
  • Option to convert images to base64 when converting from Notion to Markdown

Operations

1. Markdown to Notion

Converts Markdown text into Notion blocks.

Input:

  • inputMarkdown: The Markdown text to be converted

Output:

  • Notion blocks in JSON format

2. Notion to Markdown

Converts Notion blocks into Markdown text.

Input:

  • inputNotion: The Notion blocks in JSON format to be converted

Options:

  • convertImagesToBase64: When enabled, converts image URLs to base64 strings (useful since Notion URLs expire after 1 hour)

Output:

  • Markdown text

Configuration

  • Operation: Choose between 'Markdown to Notion' or 'Notion to Markdown'
  • Input Markdown or Input Notion Blocks: The input content to be converted
  • Output Key: The key to use for the output in the JSON object
  • Convert Images to Base64: (Notion to Markdown only) Option to convert image URLs to base64

Usage

  1. Add the Notion Markdown node to your n8n workflow
  2. Configure the node by selecting the operation and providing the necessary input
  3. Connect the node to your workflow
  4. Run the workflow to convert between Markdown and Notion blocks

Note

This node uses the @tryfabric/martian library for Markdown to Notion conversion and a custom blocksToMarkdown function for Notion to Markdown conversion.

Dependencies

  • n8n-workflow
  • @tryfabric/martian

Acknowledgment

This project is inspired & based on the great work of:

  • https://github.com/minhlucvan/n8n-nodes-notionmd, minhlucvan/n8n-nodes-notionmd
  • https://github.com/souvikinator/notion-to-md, souvikinator/notion-to-md