-
- Downloads
fix: Refactor image handling in MessageContent for better readability #328
Summary of changes - Introduced new imports for HTML and tab layout modules to streamline processing. - Simplified regex handling for embedded images by eliminating unnecessary complexity. - Cleaned up the code to improve readability and maintainability. - Added imports for "./html.mjs" and "../../layout/tabs.mjs" to enhance modularity in the component. This prepares the ground for potential future features related to layout and content processing. - Replaced the cumbersome CID regex handling with a more straightforward imgRegex that captures image tags. This change makes it easier to identify and replace source URLs in the HTML content, thereby improving clarity and facilitating debugging in the long run.
Please register or sign in to comment