import { describe, it, expect } from "vitest"; import { htmlToMarkdown } from "../markdown/utils/turndown.utils"; import { markdownToHtml } from "../markdown/utils/marked.utils"; // Lossless markdown round-trip for image captions (issue #221). An image WITH a // caption can't be expressed as `![alt](src)`, so it is emitted as a raw // (carrying data-caption) wrapped in a block
, the same trick the