Automatically sync Notion pages to Markdown and vice versa
This template watches a Notion database for updated pages, retrieves the page, and uses JavaScript to turn Notion blocks into Markdown. It then turns that Markdown back into Notion blocks and updates the same page, so a Markdown draft and the Notion body stay aligned. Connect Notion, pick the database, and map a property if you also store the Markdown text on the page.