Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A fenced block marked
mdshows 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.markedand drawn as React elements inapp/src/markdown.tsx; nothing in a message becomes HTML. HTML written in a message shows as text, onlyhttp(s)links are links, and an image is a link, not loaded (loading it would tell its server who read the message).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.