| name | creating-telegraph-pages |
| description | Prepare and publish one explicitly authorized public Telegra.ph article through the official Telegraph API, including safe node conversion, optional account setup, credential handling, and page verification. |
Creating Telegraph Pages
Use the bundled scripts/telegraph.py by absolute path. A page is a public external write. An exact request authorizes one page only when final title, content, and any byline/link are explicit; otherwise present those fields for approval before publishing. Account creation is a separate external-state change.
Prepare
- Preserve the user's language and wording unless editing was requested. Reject secrets, private data, and local-only asset links.
- Convert the body to a temporary JSON array of Telegraph nodes. Text may be a string; elements use
tag, optional attrs, and optional children.
- Allow only
a, aside, b, blockquote, br, code, em, figcaption, figure, h3, h4, hr, i, iframe, img, li, ol, p, pre, s, strong, u, ul, or video. Attributes are string-valued href or src. Convert larger Markdown headings to h3/h4 and keep encoded content at or below 64 KB.