{"html":"<h1>Quarterly Report</h1>\n<p>Results were <strong>strong</strong> this quarter.</p>\n<ul>\n<li>Revenue up</li>\n<li>Costs down</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Region</th>\n<th>Growth</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>North</td>\n<td>12%</td>\n</tr>\n</tbody></table>\n","length":266}
curl --location --request POST 'https://zylalabs.com/api/13168/markdown+document+converter+api/26713/convert+markup+to+web+format' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"markdown": "# Quarterly Report\n\nResults were **strong** this quarter.\n\n- Revenue up\n- Costs down\n\n| Region | Growth |\n|---|---|\n| North | 12% |"}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Markdown 文档转换器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
领先企业的信赖之选
将轻量级标记转换为完成的文档。相同的有效载荷可以变成干净的安全网页标记、三种主题的打印就绪文档,或者带有真实标题样式的可编辑文字处理文件
对于将文档转变为可分享的文档、将机器生成的文本导出为办公文件、安全呈现用户提交的内容和自动化报告管道非常有用
该端点返回来自输入轻量级标记文档的干净、经过清理的网页标记。响应包括转换后的HTML内容及其字符长度
The key fields in the response data are "html," which contains the sanitized web markup, and "length," which indicates the character count of the returned HTML.
响应数据被结构化为一个包含两个字段的JSON对象:“html”用于转换后的标记,“length”用于字符计数。这使得在应用程序中易于解析和使用
This endpoint provides information such as headings, emphasis, lists, tables, and code blocks, all preserved from the original lightweight markup, ensuring a comprehensive conversion.
The primary parameter for this endpoint is the lightweight markup document itself, which should be included in the request body. Additional customization options may be available depending on implementation.
Users can utilize the returned HTML for web display, further processing in web applications, or exporting to other formats. The length field helps in managing content size for performance considerations.
典型的使用案例包括将文档转换为可共享的网页内容 将机器生成的文本导出为办公文件 以及安全地为网页应用呈现用户提交的内容
数据准确性通过API内部处理得以维护,该处理清理输入以去除不安全的元素并确保输出符合网络标准,提供可靠和安全的标记