diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-24 10:27:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-24 10:27:56 +0200 |
| commit | 84249d5a74321deca3d37d2994473e08c5f5df28 (patch) | |
| tree | 7c9f4fcb39248deeafd4f00cc6951366ad6591e9 /README.md | |
| parent | cc35a23785da52a502993e6afefb5b0ccc369a56 (diff) | |
| download | llamachat-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 'README.md')
0 files changed, 0 insertions, 0 deletions
