DEV Community

Florin Adamache
Florin Adamache

Posted on

Best way to convert HTML Markdown in VTEX without losing functionality?

Hey everyone ๐Ÿ‘‹

Iโ€™m currently working as part of a team that runs an e-commerce platform built on VTEX. I know the community is pretty divided on it โ€“ some consider it powerful and scalable, others find it too rigid and restrictive. That said, this post isnโ€™t about debating VTEX itself.

Iโ€™m trying to solve a more specific technical challenge: converting HTML content into Markdown without losing too much of its original functionality (structure, styles, layout behavior, etc.).
From the research Iโ€™ve done so far, it seems like a clean, one-to-one conversion is pretty much impossible โ€” at least not without a lot of manual rewriting or compromises.

The main reason Markdown is non-negotiable in my case is because VTEX accepts Markdown natively in certain content areas, while HTML is either limited or not supported at all.

Has anyone here faced a similar situation before?
Are there any tools, libraries, or workflows youโ€™d recommend that help preserve key HTML functionality when converting to Markdown? Even partial solutions, best practices, or clever workarounds would be super helpful ๐Ÿ™

Thanks in advance for any insights or ideas you can share! ๐Ÿ’ก

Top comments (0)