Let the markdown renderer draw tables, and stop headings shouting
Two things a reply could not render, both from the same cause: the renderer was pinned nineteen releases back. Tables arrived in the library at 0.30.0. On 0.26.0 a GFM table was not a table at all -- the rows fell through as text and ran together, pipes and all. They now draw as a table, and scroll sideways when they are wider than the phone rather than losing the last column. Headings took the renderer's defaults, which are the Material *display* styles: `#` came out at 57sp and `##` at 45sp, both larger than this app's own screen titles, so any reply with a heading in it read as shouting. They now descend from headlineSmall to labelSmall -- six steps, every one a different size, so two levels of nesting never draw the same. The pin was not carelessness, which is the part worth recording: the version comment says Maven Central was checked on 2026-08-29 and 0.26.0 was the newest stable. It still answers that, because `search.maven.org/solrsearch` is stale for this artifact -- it knows nothing past 0.27.0-rc02. `maven-metadata.xml` in the repository itself lists up to 0.45.0, updated 2026-08-28. The comment now says to read the metadata rather than the search API, since the same check will otherwise be made the same way next time. The colour mapping moved with the API: `markdownColor` no longer carries `codeText`, `inlineCodeText` or `linkText`, which now ride on the typography as the style's own colour and a `TextLinkStyles`. Same Catppuccin values as before. `tableBackground` is set to the tint code blocks use rather than the library's 2%-alpha default, which on this surface was invisible. Checked on the emulator against a reply carrying all six heading levels, inline code, a link, and a three-column table -- including scrolling the table to confirm the clipped last column is reachable rather than lost.
This commit is contained in:
1 parent
6b4911c67b
commit
2bf90daada
2 files changed
+65
-11
No files matched your search
@@ -16,9 +16,16 @@ zxing-embedded = "4.3.0"
|
||||
# Markdown rendering for assistant replies. The widely-used Compose
|
||||
# Multiplatform renderer; markdown is somebody else's specification and a
|
||||
# hand-written subset disagrees with it at the edges, one bug report at a
|
||||
# time. Latest stable, checked 2026-08-29 against Maven Central -- 0.27.0
|
||||
# exists only as release candidates.
|
||||
markdown-renderer = "0.26.0"
|
||||
# time.
|
||||
#
|
||||
# Read the version from `maven-metadata.xml`, not from the search API:
|
||||
# `search.maven.org/solrsearch` still answers 0.26.0 with 0.27.0 only as
|
||||
# release candidates, which is what pinned this nineteen releases behind
|
||||
# and cost us table support -- tables arrived in 0.30.0 and simply
|
||||
# rendered as run-together text until then.
|
||||
# https://repo1.maven.org/maven2/com/mikepenz/multiplatform-markdown-renderer-m3/maven-metadata.xml
|
||||
# Latest stable there, checked 2026-08-29.
|
||||
markdown-renderer = "0.45.0"
|
||||
# Syntax highlighting for a tool call's input. Same reasoning as the markdown
|
||||
# renderer: a language's lexical rules are somebody else's specification.
|
||||
# Latest stable, checked 2026-08-29 against Maven Central.
|
||||
|
||||
Reference in new issue
Block a user