From 71e55ba93e00227d6461b58021d8e1a0036de186 Mon Sep 17 00:00:00 2001 From: rong-xyz Date: Wed, 23 Apr 2025 06:43:37 +0000 Subject: [PATCH] support html --- packages/markitup/src/markitup/_markitup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/markitup/src/markitup/_markitup.py b/packages/markitup/src/markitup/_markitup.py index 5e585d0..c392ce4 100644 --- a/packages/markitup/src/markitup/_markitup.py +++ b/packages/markitup/src/markitup/_markitup.py @@ -61,6 +61,8 @@ class MarkItUp: return DocxConverter(config=self.config).convert(stream, stream_info), stream_info case "image": return ImageConverter(config=self.config).convert(stream, stream_info), stream_info + case "html": + return HtmlConverter(config=self.config).convert(stream, stream_info), stream_info case _: match stream_info.category: case "ppt": @@ -117,6 +119,8 @@ class MarkItUp: elif magic_type.startswith("text/"): if magic_type == "text/csv": category = "csv" + elif magic_type == "text/html": + category = "html" else: category = "text" else: