share_text
Publish text at a public URL and get the link back. Accepts up to 2MB of content, measured in UTF-8 bytes. A filename ending in .html or .htm produces a page that renders live in the browser. A .csv or .json file opens in NudgeHost's table or JSON viewer. A .md or .markdown file shows as formatted text, with headings, lists, tables, task lists and links, a Source view, a Copy source button and a raw text address; HTML inside it shows as typed and images are not loaded. Any other filename, including .txt, produces a page that shows the text as plain text, with a Copy text button and a raw text address. The link is public: anyone who has it can open the file without signing in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The text to publish, exactly as it should be stored. For an .html filename this is the complete HTML document. May be empty. | |
| filename | Yes | The name to give the file, including an extension. End it in .html or .htm to publish a web page, or .md to show Markdown as formatted text. Any other extension, apart from .csv and .json, shows the text as plain text. Up to 200 characters. |