Skip to content

0.9.5: Markdown and tables in messages - #40

Merged
Ege-BULUT merged 1 commit into
mainfrom
markdown
Oct 27, 2026
Merged

Ege-BULUT merged 1 commit into
mainfrom
markdown

Conversation

@Ege-BULUT

Copy link
Copy Markdown
Owner

A fenced block marked md shows as Markdown in the apps (web, desktop, phone): headings, bold and italic, lists, checklists, links and tables. Any other fenced block shows as code, in a fixed-width font; colours per language are for later.

  • Safe by construction. Markdown is parsed to tokens with marked and drawn as React elements in app/src/markdown.tsx; nothing in a message becomes HTML. HTML written in a message shows as text, only http(s) links are links, and an image is a link, not loaded (loading it would tell its server who read the message).
  • Tables. A row stays on one line where it can; a table wider than the bubble scrolls sideways inside it. A sideways drag on a table or code block scrolls it instead of swiping the message to reply.
  • Snippets. A chat's last message, the CLI's quote previews and notifications (in the app and through ntfy) leave out the fence lines.
  • Docs. Usage guide and for-agents page (EN+TR), docs/AGENTS.md, changelog.

Tests: app.e2e.mjs markdown (10 checks: rendering, alignment, sideways scroll by finger and mouse, no swipe on tables and code, HTML stays text, link rules, code blocks, surrounding text); a snippet unit test. Unit 79/79, CLI 30/30, MCP 17/17, browser 66/66.

A fenced block marked md shows as Markdown: headings, emphasis, lists,
checklists, links and tables. Markdown is parsed to tokens with marked and
drawn as React elements, so nothing in a message becomes HTML; HTML in it
shows as text, only http(s) links are links, and images are links, not
loaded. A table too wide for the bubble scrolls sideways, and a drag on it
no longer swipes the message to reply. Any other fenced block shows as code.

Message snippets and notifications leave out the fence lines.
@Ege-BULUT
Ege-BULUT merged commit c9b1289 into main Oct 27, 2026
1 check passed
@Ege-BULUT
Ege-BULUT deleted the markdown branch October 27, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant