protected Map<String, String> formatResult(String url, String content) {
        return Map.of(
                "url", url,
                "content", trimContent(convertHtmlToMd(content))
        );
    }
@Test
    void testFormatResultWithLongContent() {
        String url = "http://example.com";
        StringBuilder longHtml = new StringBuilder("<html><body>");
        for (int i = 0; i < 1000; i++) {
            longHtml.append("<p>Paragraph ").append(i).append("</p>");
        }
        longHtml.append("</body></html>");

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

        assertEquals(url, result.get("url"));
        assertEquals(2500, result.get("content").length());
    }