Code is where a converter earns trust.
Guide · Fidelity
A Markdown renderer must preserve the language tag, leading indentation, and nested backticks. The outer fence needs to grow when the code itself contains triple backticks. HTML entity substitution such as < in source code is a visible defect.
LosslessChat treats code, tables, LaTeX, nested lists, and HTML as explicit block types and checks them against byte-level goldens.
- Fences are sized from the longest backtick run.
- Math bypasses Markdown escaping.
- Raw HTML is escaped in offline output.