**bold** *italic* `code` # heading ``` fence
The markers are removed before anything is measured: a line measured with its
asterisks wraps in a different place than the one that is drawn, so height and
drawing now use the same stripped string. Each kept character carries an
attribute, which keeps a bold word bold across a wrap.
Fence blocks lose their marker lines and are drawn dim - an answer full of C
should look like code, not like three backticks around code.
Measured: zero '**' and zero '```' in a rendered answer, the list intact, the C
block readable.
One bug found by looking at the result: '_' was treated as an italic marker, so
the model name came out as Qwen3.6-35B-A3B-UD-Q8KX - a different model as far as
a reader is concerned. Only the asterisk marks italics now; underscores belong to
names.