n8n-nodes-telegraph-md2node
v0.1.5
Published
n8n custom node to convert Markdown into Telegraph Node JSON
Downloads
28
Maintainers
Readme
n8n-nodes-telegraph-md2node
Custom n8n node that takes Markdown and returns a telegra.ph API-compatible node JSON structure.
Features
- Converts Markdown into a Telegraph Node array (strings and tag objects).
- Maps headings (
h1..h4) into Telegraph-allowed tags (h3,h4). - Supports links, lists, blockquotes, inline and block code, images, and separators.
- Ready to publish as an n8n custom node repository.
Installation
npm install
npm run buildUsage in n8n
- Copy the repository contents into your n8n custom nodes directory.
- Run
npm install && npm run build. - Restart n8n — the Telegraph MD → Node node will appear in the palette.
- Provide Markdown via the
Markdownparameter (expressions like{{$json["markdown"]}}work). - The output returns
{ "content": [...] }, compatible with TelegraphcreatePage/editPage.
Output example
Example for input Emphasis with *asterisks*:
[
{
"tag": "p",
"children": [
"Emphasis with ",
{ "tag": "em", "children": ["asterisks"] }
]
}
]Tests
npm testLicense
MIT
