aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-24 10:27:56 +0200
committerDanilo M. <danix@danix.xyz>2026-08-24 10:27:56 +0200
commit84249d5a74321deca3d37d2994473e08c5f5df28 (patch)
tree7c9f4fcb39248deeafd4f00cc6951366ad6591e9 /CHANGELOG.md
parentcc35a23785da52a502993e6afefb5b0ccc369a56 (diff)
downloadllamachat-84249d5a74321deca3d37d2994473e08c5f5df28.tar.gz
llamachat-84249d5a74321deca3d37d2994473e08c5f5df28.zip
feat: wrap code blocks and offer a copy link on each
Two things made a fenced code block awkward to read. Qt's markdown stylesheet wraps p and li but not pre, and that stylesheet is dropped when only the body fragment is kept, so a long line widened the whole transcript and left it scrolling sideways. The pre style now carries white-space:pre-wrap itself. Copying a block meant selecting it by hand. Each block now gets a copy link above it, on the right, in the same scheme-dispatch the thinking and search toggles already use, since Qt rich text has no widgets to put a real button in. The block text is read back from the source markdown because Qt emits one <pre> per line, which makes the block unrecoverable from the rendered HTML; _close_fences runs first, so a block still streaming is copyable mid-reply. Like the other schemes, a forged copy link in a reply is defused.
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions