notion-publish-generated-markdown

Unescape HTML entities and publish markdown to Notion pages.

Updated Nov 18, 2025
One-click install
npx skills add https://github.com/cajias/claude-skills --skill notion-publish-generated-markdown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: notion-publish-generated-markdown
Source: https://github.com/cajias/claude-skills/tree/main/plugins/integrations/skills/notion-publish-generated-markdown
Command: npx skills add https://github.com/cajias/claude-skills --skill notion-publish-generated-markdown

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you safely publish AI-drafted Notion-flavored markdown without breaking rendered blocks, escaping characters, or silently failing diagrams.

Core Features & Use Cases

  • Entity cleanup: Converts escaped HTML entities such as <, >, and & back into literal markdown before publishing.
  • Notion rendering fixes: Prevents raw callout and table markup from appearing as plain text in published pages.
  • Mermaid reliability: Avoids diagram failures caused by reserved identifiers like graph, end, or subgraph.
  • Publish verification: Confirms that pages actually landed and that parent-child page relationships are correct.

Quick Start

Clean the drafted markdown, fix any Mermaid reserved-word collisions, and publish the result to Notion while verifying that the final page renders correctly.

Frequently Asked Questions about notion-publish-generated-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does AI-generated markdown publish as raw text with escaped entities in Notion?

AI-generated markdown publishes as raw text in Notion because escaped HTML entities like &lt; and &amp; are not converted back to literal characters before publishing. You must unescape these entities and preserve renderable block syntax to fix broken page rendering.

How do I publish Mermaid diagrams to Notion without rendering failures?

To publish Mermaid diagrams to Notion successfully, you must clean the drafted markdown and resolve reserved-word collisions with identifiers like graph, end, or subgraph. This prevents silent diagram failures during the publishing workflow.

What is the best way to fix broken callouts and tables when publishing markdown to Notion?

The best way to fix broken callouts and tables in Notion is to apply entity unescaping and validate that Notion-flavored markdown block syntax is preserved before publishing. This prevents raw markup from appearing as plain text on your pages.

Does Notion MCP support verifying parent-child page relationships after publishing markdown?

Notion MCP does support verifying parent-child page relationships after publishing markdown. You can validate cleaned content and request post-publish confirmation to ensure that pages and child pages actually rendered and landed correctly.

Can I use AI-drafted design documents for fan-out publishing workflows in Notion?

You can use AI-drafted design documents for fan-out publishing workflows in Notion by unescaping entities, fixing Mermaid reserved-word collisions, and verifying that all parent and child pages landed and rendered correctly.

What are the limitations of publishing AI-generated markdown directly to Notion pages?

Limitations of publishing AI-generated markdown directly include raw callout and table markup rendering as plain text, broken Mermaid diagrams from reserved identifiers, and silently failed page landings. You must validate cleaned content to avoid these issues.