To Markdown
Convert an HTML document into Markdown format.
NodeJS
const html = await getHTML("http://www.cloudbrowser.ai");
if (!html) return;
const markDown = await ai.toMarkdown({
html: html,
});
console.log("Markdown:", markDown.response);
.NET
var html = await GetHTML("http://www.cloudbrowser.ai").ConfigureAwait(false);
if (html == null) return;
var markDown = await ai.ToMarkdown(new() {
Html = html
}).ConfigureAwait(false);
/api/v1/ai/ToMarkdown – Convert HTML to Markdown
Method:
POST
Parameters:
html
: (string) – The HTML document to convert.
Notes:
This is the only endpoint that does not require a
responseFormat
.
Request Example:
curl -X POST https://production.cloudbrowser.ai/api/v1/ai/ToMarkdown \
-H "Content-Type: application/json" \
-d '{
"html": "<html>...</html>"
}'
Last updated