
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.
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.
Converts Markdown text into Notion blocks.
Input:
inputMarkdown: The Markdown text to be convertedOutput:
Converts Notion blocks into Markdown text.
Input:
inputNotion: The Notion blocks in JSON format to be convertedOptions:
convertImagesToBase64: When enabled, converts image URLs to base64 strings (useful since Notion URLs expire after 1 hour)Output:
Operation: Choose between 'Markdown to Notion' or 'Notion to Markdown'Input Markdown or Input Notion Blocks: The input content to be convertedOutput Key: The key to use for the output in the JSON objectConvert Images to Base64: (Notion to Markdown only) Option to convert image URLs to base64This node uses the @tryfabric/martian library for Markdown to Notion conversion and a custom blocksToMarkdown function for Notion to Markdown conversion.
This project is inspired & based on the great work of: