Convert previously downloaded notion blocks to markdown #136
YasielCabrera
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to convert notion blocks "offline" without connecting to notion through the notion client?
My use case: I download some pages and databases using the notion API, process them, do some stuff, and store the notion response. Later, a tool should use
notion-to-mdto convert some blocks to markdown, but at that stage, it shouldn't connect to notion.Edit: What I actually need to transform is a rich_text block/section (no 100% sure what would be the exact name in the Notion definitions)
Having something similar to the following "json" I would need to transform
properties.Descriptioninto Markdown{ "properties": { "Description": { "rich_text": [ { "type": "text", "text": { "content": "There is some ", "link": null }, "annotations": { "bold": false, "italic": false, "strikethrough": false, "underline": false, "code": false, "color": "default" }, "plain_text": "There is some ", "href": null }, { "type": "text", "text": { "content": "text", "link": null }, "annotations": { "bold": true, "italic": false, "strikethrough": false, "underline": false, "code": false, "color": "default" }, "plain_text": "text", "href": null }, { "type": "text", "text": { "content": " in this property!", "link": null }, "annotations": { "bold": false, "italic": false, "strikethrough": false, "underline": false, "code": false, "color": "default" }, "plain_text": " in this property!", "href": null } ] } } }Beta Was this translation helpful? Give feedback.
All reactions