{"repo":"tryfabric/martian","free":true,"listed":false,"github":"https://github.com/tryfabric/martian","clone":"git clone https://github.com/tryfabric/martian.git","description":"Markdown to Notion: Convert Markdown and GitHub Flavoured Markdown to Notion API Blocks and RichText 🔀📝","language":"TypeScript","stars":540,"topics":["notion","markdown","gfm","ast","fabric"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Martian: Markdown to Notion Parser Convert Markdown and GitHub Flavoured Markdown to Notion API Blocks and RichText. Martian is a Markdown parser to convert any Markdown content to Notion API block or RichText objects. It uses unified to create a Markdown AST, then converts the AST into Notion objects. Designed to make using the Notion SDK and API easier. Notion API version 1.0. Supported Markdown Elements - All inline elements (italics, bold, strikethrough, inline code, hyperlinks, equations) - Lists (ordered, unordered, checkboxes) - to any level of depth - All headers (header levels = 3 are treated as header level 3) - Code blocks, with language highlighting support - Block quotes - Supports GFM alerts (e.g. [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION]) - Supports Notion callouts when blockquote starts with an emoji (optional, enabled with enableEmojiCallouts ) - Automatically maps common emojis and alert types to appropriate background colors - Preserves formatting and nested blocks within callouts - Tables - Equations - Images - Inline images are extracted from the paragraph and added afterwards (as these are not supported in notion) - Image urls are validated, if they are not valid as per the Notion external spec, they will be inserted as text for you to fix manually Usage Basic usage: The package exports two functions, which you can import like this: Here are couple of examples with both of them: Result [ { \"type\": \"text\", \"annotations\": { \"bold\": true, \"strik","default_branch":null,"files":null,"tree":[],"storefront":"/r/tryfabric","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tryfabric/martian/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}