mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-25 15:35:47 +00:00
11 lines
478 B
TypeScript
11 lines
478 B
TypeScript
import Markdown, { MarkdownContentType } from "Common/Server/Types/Markdown";
|
|
|
|
// This class is responsible for rendering markdown content to HTML
|
|
export default class DocsRender {
|
|
// Render markdown content to HTML and return the result as a promise
|
|
public static async render(markdownContent: string): Promise<string> {
|
|
// Use the Markdown library to convert markdown content to HTML
|
|
return Markdown.convertToHTML(markdownContent, MarkdownContentType.Docs);
|
|
}
|
|
}
|