Skip to content

Build your personal knowledge base with Trilium Notes

chore(server): add OpenAPI spec for to-markdown

Elian Doranea613986c23e
diff --git a/apps/server/internal.openapi.yaml b/apps/server/internal.openapi.yaml
index 73cff4b627..d6105e63e5 100644
--- a/apps/server/internal.openapi.yaml
+++ b/apps/server/internal.openapi.yaml
@@ -4328,6 +4328,28 @@ paths:
text/html:
schema:
type: string
+ /api/other/to-markdown:
+ post:
+ tags: [Utilities]
+ summary: Renders given HTML to Markdown
+ operationId: toMarkdown
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ type: object
+ required: [htmlContent]
+ properties:
+ htmlContent:
+ type: string
+ responses:
+ '200':
+ description: The input text rendered as Markdown
+ content:
+ text/plain:
+ schema:
+ type: string
components:
securitySchemes: