Renders Markdown to HTML with the renderer the pages draw comments, issue and pull bodies with: raw HTML shown as text, bare web addresses made links, and relative links resolved inside the repository. Reads and fetches nothing, and needs no login. A procedure rather than a query, since the text may be long.
Input
application/jsonrepo
stringat-uri
Optional
The dev.knotless.repo record of the repository it is written in, as dev.knotless.getThread takes it: relative links resolve inside it. Without it, they resolve from the site's root.
text
string
Required
The Markdown, as long as a comment's or a body's may be.
maxLength: 20000 bytesOutput
application/jsonhtml
string
Required
The HTML, as dev.knotless.getThread's comments carry it.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Renders Markdown to HTML with the renderer the pages draw comments, issue and pull bodies with: raw HTML shown as text, bare web addresses made links, and relative links resolved inside the repository. Reads and fetches nothing, and needs no login. A procedure rather than a query, since the text may be long.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"repo": {
"description": "The dev.knotless.repo record of the repository it is written in, as dev.knotless.getThread takes it: relative links resolve inside it. Without it, they resolve from the site's root.",
"format": "at-uri",
"type": "string"
},
"text": {
"description": "The Markdown, as long as a comment's or a body's may be.",
"maxLength": 20000,
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"html": {
"description": "The HTML, as dev.knotless.getThread's comments carry it.",
"type": "string"
}
},
"required": [
"html"
],
"type": "object"
}
},
"type": "procedure"
}