2c4fc565b6
A literal inline-HTML break tag typed as prose text (`<br>`, `<br/>`, `<br />`) was emitted verbatim into markdown, so on re-import marked parsed it as an inline-HTML line break and silently turned the user's text into a hardBreak node, dropping the text. HTML-entity-encode only the angle brackets of a break-tag sequence in `case "text"` so it lands as `<br>` and the importer decodes it back to literal `<br>`. Scoped strictly to the `<br…>` pattern (not every `<`/`>`), so stray angle brackets in prose (`a < b > c`) are untouched, and to the text-content path only — a real hardBreak serializes from its own case (` \n`, or `<br>` via inlineToHtml), so the serializer's own emitted breaks are never escaped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>