Development record
The lifeboat markdown renderers' escapeLeadingMarker (internal/core/lifeboat/mdrender.go) backslash-escapes a leading backtick unconditionally, the defect ideate's blockText was fixed for. termsafe's HTML-tag rule exempts a code span, so a value opening with a balanced span that quotes a details tag keeps the tag unbroken; escaping the opening backtick kills the span and republishes the tag as live inline HTML in principles.md or press-release.md, concealing what follows (the site renderer refuses the result as an unclosed code span). Only an unbalanced leading run opens a fence and needs the escape.
The lifeboat markdown renderers' escapeLeadingMarker (internal/core/lifeboat/mdrender.go) backslash-escapes a leading backtick unconditionally, the defect ideate's blockText was fixed for. termsafe's HTML-tag rule exempts a code span, so a value opening with a balanced span that quotes a details tag keeps the tag unbroken; escaping the opening backtick kills the span and republishes the tag as live inline HTML in principles.md or press-release.md, concealing what follows (the site renderer refuses the result as an unclosed code span). Only an unbalanced leading run opens a fence and needs the escape.
Grounds
- pursued: a block value opening with a balanced span quoting a details tag renders the tag inside a code element, while an unbalanced leading run is still escaped; TestBlockValueKeepsABalancedLeadingCodeSpan seeing the site renderer refuse the value, or an unbalanced run left unescaped, would show it wrong
Frontmatter
| id | iss-2609262237415400 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609262237415400-lifeboat-block-escape-breaks-a-balanced.md
open on GitHub ↗ · commit history ↗