protected Map<String, String> formatResult(String url, String content) {
        return Map.of(
                "url", url,
                "content", trimContent(convertHtmlToMd(content))
        );
    }
@Test
    void testFormatResultWithShortContent() {
        String url = "http://example.com";
        String htmlContent = "<html><body><p>Short content</p></body></html>";

        Map<String, String> result = markdownBrowserAction.formatResult(url, htmlContent);

        assertEquals(url, result.get("url"));
        assertTrue(result.get("content").contains("Short content"));
        assertTrue(result.get("content").length() < 2500);
    }