Records Feature record

FDR-032

Message Formatting

Active Last reviewed 2026-11-21 Source file

Overview

Message bodies are stored and exchanged as plain text while bundled clients render a deliberately limited Markdown subset. This gives people useful structure for chat, code, and compact tabular data without making message content depend on a client-specific rich-text document format.

Behavior

  • In message composers, # at the start of text or after whitespace opens a server and room picker. Fuzzy search matches registered servers, explicitly discovered servers, and channel rooms available in their current client state. Rooms from other servers show the server name directly after the room name. Rooms on the composing server omit this label. Room results also match the server name. Server results use the configured server logo, with the usual initial fallback when the logo is absent or unavailable. Server results also match the server address. The picker does not load rooms from servers that have no room data. Direct messages and archived rooms are excluded. Arrow keys move the selection. Tab, Shift+Tab, Enter, or a click inserts the highlighted server or room's share URL with a trailing space. The space can be removed with Backspace. Selection does not send the message. Mention and emoji suggestions use the same keys. Tab inserts the highlighted emoji match with its saved skin tone. Enter or a click opens tone choices when available; arrow keys move through those choices and Tab, Shift+Tab, Enter, or a click confirms one. Space remains available for typing and closes the picker. Escape also closes the picker. Both editors support room selection in new messages, replies, and edits. Code blocks do not open the picker. Suggestions use existing server and room data without discovery or room requests. Server logos load from their server origin without credentials or referrer data; these image requests reveal the browser’s IP address to that server.
  • Automatic links require www. or an allowed protocol: https://, http://, or mailto:. Bare domains, filenames, email addresses without mailto:, and protocol-relative URLs stay plain text. Explicit Markdown links also allow root-relative paths that start with one /, such as [room](/chat/example.com/R8rLgzhPkYja7Gs). These paths do not produce link previews, and the visual editor preserves them. Other protocols stay unlinked. This rule prevents filenames such as agents.md and foo.py from becoming links. The source editor uses the same prefix rule for URL highlighting. Selecting a mailto: link opens the configured mail application.
  • Messages support paragraphs, ATX headings, emphasis, links and autolinks, inline code, fenced and indented code blocks, blockquotes, and ordered and unordered lists.
  • Built-in emoji shortcodes, such as :wave:, :heart:, and :+1:, render as Unicode emoji. Names are case-sensitive and use the gemoji catalogue, including its aliases, plus the entries in tools/emoji-additions.json. The additions supply newer emoji missing from the released dependency; mise codegen-emoji includes them in the server, client, and converter maps. The picker and shortcode resolver use the same base catalogue. The frontend shows emoji with its bundled Twemoji font; see decision 10. Adjacent tags work without spaces. Unknown names stay literal. Code, automatic URL labels, link destinations, and link titles stay unchanged. Explicit link labels, quotes, tables, footnotes, and inline Markdown previews support shortcodes.
  • Typed shortcodes remain in the stored message and in both editors. Editing, reopening, and copying the full message source retain them. Existing Unicode emoji and the picker's Unicode insertion still work. Other clients can show shortcode text without a server upgrade.
  • Emoji picker search and shortcode suggestions use the same case-insensitive fuzzy search across names, aliases, and tags. A query can omit separators and other characters, such as headshakingvertically for head_shaking_vertically. Exact names rank first, then prefixes, substrings, and subsequences. Tags have lower weight than equivalent name matches. This changes suggestions only; typed shortcode resolution still requires a valid name.
  • The smiley button beside the attachment and timestamp controls opens the same emoji picker used for reactions. Selecting an emoji inserts Unicode at the cursor or replaces selected text, then returns focus to the editor. Both editors support this in new messages, thread replies, and message edits. Search, skin-tone choices, and the per-server Recently Used list are shared with the reaction picker. Touch-primary devices show the picker in a bottom sheet. The button is disabled when the message input is disabled.
  • Shortcodes directly beside Unicode letters, numbers, combining marks, or literal underscores stay literal. For example, omg:poop:foo stays unchanged. Whitespace and punctuation permit conversion, so (:wave:)! and :wave::heart: work. Markdown formatting still applies around tags, such as _:wave:_ for an italic emoji. Autocomplete uses the same opening boundary and shortcode name characters. Suggestions appear after two name characters, including signed aliases such as :+1.
  • Double underscores (__text__) mean underline, including in existing messages. Double asterisks (**text**) mean bold. Underline uses the normal emphasis boundaries and does not interpret underscores inside inline code, code blocks, or link destinations. Both editors provide an Underline toolbar button and Ctrl+U (⌘U on macOS). The visual editor retains underline when messages are saved, reopened, or switched to Markdown.
  • Messages support GFM pipe tables with a header delimiter row, optional outer pipes, left/centre/right column alignment, inline formatting, and escaped pipes inside cells.
  • Messages, server welcome messages, and Markdown attachment previews support named footnotes. Notes are numbered in reference order and appear after the text. Each reference links to its note, and each note has a return link for every reference. These links stay inside the current message or preview.
  • Both editors provide a Strikethrough button beside Underline. It adds or removes ~~ formatting and shows whether strikethrough is active at the selection. Switching editors retains this formatting.
  • Both composer editors can insert a footnote from the formatting toolbar. The visual editor shows numbered markers and editable notes, supports repeated references, and retains the named syntax when switching modes or editing a message. Typing [^label] in the visual editor creates a note or refers to its existing definition.
  • Wide tables scroll horizontally inside the message instead of widening or clipping the conversation layout.
  • Message source HTML, horizontal rules, reference-style links, and setext headings render as literal text rather than active formatting. Image syntax never loads or displays an image; its label and destination can fall back to an ordinary link.
  • Backslashes normally remain literal so common chat text such as Windows paths and kaomoji is not unexpectedly changed. An escaped pipe inside a GFM table cell is still interpreted as cell content rather than a column boundary.
  • Inline timestamp tokens render in the viewer's locale and timezone when supported by the client.
  • Editing a message preserves the plain-text Markdown body contract; the bundled composer does not provide a spreadsheet-like table editor.
  • The bundled client offers a syntax-highlighted Markdown source editor by default and an optional visual editor. Both edit the same Markdown body and provide the same formatting and composer features.
  • The Markdown source editor enables spellcheck, autocorrection, sentence capitalization, and writing suggestions for chat text. Availability depends on browser support and keyboard settings.
  • Fenced code labelled with a supported language receives programming-language syntax highlighting while composing and after posting. This includes Bend with the bend label, Lean with the lean label, and Odin with the odin label. All three are also available in the visual editor's language selector. In the visual editor, pasting into an unlabelled code block or leaving a changed block starts language detection. A successful guess becomes the block's saved language and appears in the language selector. Users can override the guess, including with TEXT for plain text. Detection uses a fixed set of preferred languages and does not change blocks merely opened for editing. Unlabelled blocks without a match and unsupported languages remain plain code. Detection does not delay sending.
  • Code blocks show subtle line numbers without a background in Source mode. The numbers scroll with the source and are excluded from copied source. Each block has a header with its language. A button copies its code without the Markdown fence or display-only tab spacing. Plain SVG, Mermaid, and ANSI blocks add Source and Render controls and present code first. These controls use the shared corner pill of previews, beside the language label: with a mouse or trackpad they show on hover or keyboard focus, and with touch input they are always visible. They never cover the code. The exact optional rendered hint shows only the visual, without a header, tabs or copy action. Animated SVG adds playback controls. Message editing and message copy retain the source. Tab state for plain fences belongs to the mounted block, does not change the message, and resets when its HTML changes. Tabs support arrow keys, Home and End. Render failures reveal source and its controls, disable Render and show a localised error.
  • Source code contents have a maximum height of 24 rem and scroll in both directions when needed. The header stays outside the scroll area. This also applies to ordinary code blocks.
  • SVG and Mermaid previews show the complete image in a frame that follows its aspect ratio. They use the available message width, including for small artwork, up to a height of 30 rem or 60 vh, whichever is smaller. This keeps previews readable without making tall images fill the conversation. Extreme ratios retain a 44 px minimum click target with the full image centred inside. They do not intercept scrolling or pinch gestures in the conversation. Clicking the image, or focusing it and pressing Enter or Space, opens the shared attachment viewer without uploading the image. Its footer contains zoom controls, a text Fit action, Details and Download. Zoom ranges from 25% to 1600% of the fitted size; Fit restores the complete image. Shared edge gradients indicate hidden content in the viewer. Back closes the viewer without leaving the room; Forward reopens the same image snapshot. Closing the viewer restores focus to the image button if it is still present. Changes to the message do not change the open snapshot.
  • Fenced blocks labelled svg offer an image in the Render tab. Invalid images reveal their source. Each message can show up to four SVG previews, each with at most 100,000 source characters, 1,000 elements, and 32 element levels including the root. Larger or additional blocks show source. Previews fit the message width and preserve transparency. Sanitization retains shapes, text, groups, local gradients, and up to 32 simple numeric, colour, or transform animations. It removes scripts, event handlers, links, CSS, motion-path animation, embedded images, filters, patterns, masks, clipping paths, markers, and use references. DTD and entity declarations are rejected before XML parsing. Message source stays unchanged.
  • Animated SVG previews have a Pause animation toggle. Its active state pauses playback; turning it off continues from the paused position. New room messages and metadata refreshes preserve an unchanged preview's timeline and pause state. The zoom viewer has its own playback control and starts a new timeline. Reduced motion starts playback paused; users can turn the pause toggle off to play. Hidden and offscreen frames pause automatically. A remounted preview starts a new timeline. CSS animations and event-based timing are not supported.
  • Fenced blocks labelled ansi offer static ANSI art in the Render tab. They support terminal colors, Unicode text, cursor movement, and erase commands. Each block uses an 80-column, 100-row screen with no scrollback. Unused bottom rows are hidden. Wide art scrolls horizontally; all screen rows remain visible. The first four ANSI blocks in a message render as art; additional blocks show their source. Copy retains the escape codes. Artwork uses a fixed black background in both themes. It cannot blink, open terminal links, access the clipboard, or make external connections.
  • Code-copy buttons and shared copy controls briefly show a checkmark after the clipboard write succeeds. Failed copies keep the copy icon and show an error.
  • The message menu offers Copy message text to copy the full Markdown source. When text is selected wholly within that message body, Copy selected text appears immediately above it and copies only the selected text. A selection outside the message or across messages does not show this action. The menu keeps the selected text when it opens, even if focus changes.
  • Plain URLs to known users, rooms, and servers appear as inline pills with the current name and an avatar or icon. This includes angle-bracket URLs and links to other registered servers. Explicit Markdown links retain their labels and normal link display. Selecting a message pill opens the entity. Right-click, touch long-press, and the keyboard context-menu command open entity actions.
  • A colon immediately after an automatic web link stays outside the link and its pill. Colons inside URLs, port numbers, and explicit Markdown or angle-bracket destinations stay unchanged.
  • Automatic HTTP(S) URLs without a known entity appear as ordinary underlined text links. They show the full URL and wrap within the message width. Explicit Markdown labels and email links keep their normal display. Fetched metadata never changes the inline label or message layout.
  • Both composers preview only recognised Chatto entity and message links immediately after paste, without a trailing space. Room and user links require locally available entity data. Other URLs stay directly editable and have no preview widgets. Selecting a preview or moving the caret into its text reveals the URL for editing. The Markdown composer also keeps explicit Markdown links and links in code visible as source. Sending, copying, or switching editor modes retains the original URL, not the displayed name. Absolute known-server routes become relative navigation URLs. The destination server is resolved from the source URL. Navigation uses the canonical segment: - for this client's home server and the hostname for a remote server. The remaining path, query, and fragment stay unchanged. Posted links load missing preview metadata only on hover, focus, or touch long-press. Loading indicators and fetched titles appear in the floating card or touch sheet. These surfaces reuse existing message metadata and share a session-scoped request cache. Composer previews keep their existing request flow. In both composers, Backspace after a pill or Delete before a pill removes its URL. Undo restores the URL. Moving the caret into the URL keeps normal character deletion.
  • Entity pills use data already available to the client. Unknown or unavailable entities use plain URL links. A later name change updates the pill; loss of the entity restores the URL link. Registration can upgrade a URL link to an entity pill. Rendering does not discover unknown servers or fetch missing profiles or rooms. Images come from the known entity's avatar or server icon, as on other identity surfaces.
  • Message permalinks to registered servers use a message icon and the known room name, or the server name when the room is unavailable. When an existing room or thread timeline contains the message, the pill shows its author and replaces the message icon with the author's avatar. These reads do not create a timeline or request data. Message hover cards use the same local data. Explicit Markdown labels remain unchanged. Thread-only permalinks, management routes, and other non-entity URLs use plain URL links. Links in code remain literal text. Entity links do not send mention notifications.
  • Hovering or focusing a URL link, entity pill, or explicit HTTP(S) Markdown link opens a delayed card. Explicit links retain their authored labels, formatting, title attributes, and navigation behavior. Recognized entity cards use local names, images, and descriptions. Other cards request metadata through the current server's existing link-preview endpoint by default. Page images fill the card width above the title and description. A compact footer shows the hostname and path; the full URL remains available to assistive technology and through the copy-link action. Loading and unavailable results have dedicated layouts. Images use the returned server-managed assets; cards do not embed third-party players. Requests share a session-scoped cache. Escape, leaving the card, navigation, or unmounting dismisses it. Existing composer preview requests are unchanged. Remote Chatto discovery is deferred.
  • While a context menu is open, hover and keyboard focus do not open link previews or start metadata requests. Opening a link context menu cancels its pending hover preview. Touch menus can still show their own preview content.
  • The entire hover card is a native link, including its image and footer. It uses the trigger's navigation rules and supports modified clicks. Keyboard focus keeps it open; Escape closes it and returns focus to the trigger. Interactive cards do not use tooltip semantics. Message pills with a known author say “Message from {name}”. Linked message previews show the message date and time with the viewer's date and time settings. Local hover cards also show the timestamp when the message is available.
  • On touch input, a long-press opens a bottom sheet with the same preview and actions to open or copy the link. Entity pills keep their existing actions below the preview. A normal tap opens the destination immediately. Moving the finger cancels the pending preview, so readers can scroll. Releasing a long-press does not open the destination. Only one sheet opens; a handled long-press suppresses the native context menu and the surrounding message menu. The sheet stays open until dismissed or an action is selected.
  • Right-clicking an ordinary link in a message body opens the message menu. Copy Link copies that link's URL; Copy Message Link copies the message permalink. Modifier clicks and middle-clicks use the browser's tab and window behavior. External links use native navigation. A plain click on a known Chatto destination navigates within the app.
  • The app applies the editor choice to every registered Chatto server. It does not sync this App Preference to other browsers or devices.
  • The app applies the sending keys to every registered Chatto server. Return sends by default. People can select the platform modifier plus Return instead.
  • The key not assigned to sending performs the selected editor's normal Return action. In the visual editor that includes paragraph splitting, list continuation, leaving an empty list item, and new lines inside code blocks; Shift+Return remains a hard line break.
  • Both editors provide toolbar actions to indent and outdent. In the visual editor they change list nesting. In the Markdown source editor they change the indentation of the current line or selected lines.
  • In the Markdown source editor, Tab and Shift+Tab move keyboard focus without changing the text when no suggestions are open. An open autocomplete handles these keys first: Tab and Shift+Tab insert the highlighted match with a trailing space. An Escape prefix is not required for normal focus navigation.
  • The composer shows message actions below the text in narrow panes. In wider panes, actions share the input row until the draft grows beyond one line. They then stay below the text until the draft is cleared or sent, or its destination or edit mode changes. This prevents the layout from switching repeatedly when the extra width removes a line wrap.
  • A Formatting options control shows or hides the formatting toolbar above the input. The toolbar is hidden by default. The app stores the last selection in the browser and applies it to all composers. Both toolbars use larger buttons and icons when touch is the primary input, at every viewport width. Mouse-primary hybrid devices use compact controls. Spacing changes automatically with the primary input. The formatting toolbar scrolls horizontally when its controls do not fit.
  • Touch-primary devices always use Return for editing and the visible Send button, even when Return-to-send is selected.

Design Decisions

Code blocks use the shared preview frame: a raised surface with a four-pixel rim and recessed content. Message artifacts and the visual composer share this frame and a thin header; the source editor uses its surfaces around editable fence lines. Editors do not show line numbers. The visual editor places only its language selector in the header. The Markdown editor keeps the fence text editable.

Scrollable message code blocks use the shared edge gradients. Fades show only where more content is available, including horizontal ANSI output. They follow the content background and stay below the code header. Composer code blocks never scroll internally. They expand to fit their content and wrap long lines without changing the saved source. The visual composer owns scrolling and its edge fades.

1. Plain-text Markdown is the interchange format

Decision: Message formatting is represented by Markdown in the existing plain-text body rather than by a client-specific rich-text document. Why: Plain text remains portable across API clients, server versions, exports, and clients that implement only a subset of formatting. Unsupported syntax can still be displayed instead of making the message unreadable. Tradeoff: Clients must implement compatible rendering themselves, and a rich composer cannot represent every valid source construct as a dedicated editing control.

2. The supported syntax is deliberately constrained

Decision: The bundled renderer enables common conversational structure, GFM tables, and named footnotes while keeping source HTML, images, and several lower-value block constructs disabled. Why: A small reviewed output surface is easier to keep predictable and safe in user-authored messages. File attachments provide the general path for images; explicit SVG previews use the bounded image behavior below. Tradeoff: Markdown copied from other applications may contain valid constructs that Chatto intentionally shows as literal text.

3. Tables favour readable data over layout control

Decision: Tables use semantic rows, headers, cells, and GFM column alignment, with native horizontal scrolling when their content is wider than the message. Why: Tables are useful for compact comparisons and status data, but message authors should not be able to use them to force the conversation column wider or create arbitrary page layouts. Tradeoff: Large tables require horizontal scrolling on narrow screens and are less convenient to author in the bundled visual editor than ordinary prose.

4. Composer presentation is an App Preference

Decision: The bundled client supplies visual and Markdown source editors for the same message body. App Preferences stores the editor and send-key choices on the Composer page. It also stores the formatting-toolbar state when a person changes it in the composer. Markdown, Return-to-send, and a hidden formatting toolbar are the defaults when a preference is absent or invalid. The key that does not send keeps the editor's normal Return behavior. Each editor uses its own indent model. The visual editor changes list structure. The Markdown editor changes source-line indentation. Why: People can choose direct source control or a syntax-free editing experience without changing the server contract, message history, or what other clients receive. They can also preserve their preferred chat shortcut and familiar keyboard editing behavior in paragraphs, lists, or code blocks. Tradeoff: App Preferences do not follow a person to another browser or device. Each editor must have the same composer integrations and formatting controls. A person must open the toolbar before they can select a formatting control. The indent controls operate differently in each editor. The alternate Return shortcut changes meaning with the selected send mode.

5. ANSI blocks show a static terminal screen

Decision: Interpret terminal drawing commands only in ansi fences and show the final screen as selectable text. Use fixed screen dimensions and a limit on the number of rendered blocks. Why: People and bots can share colored art and cursor-based drawings through the existing message body. Fixed limits keep each message's display work bounded. Static output needs no active terminal session. Tradeoff: Terminal animations and raw CP437 file imports are not supported. Send Unicode text with actual escape characters. The composer shows source. Other clients can show the source if they do not support ANSI art.

6. SVG previews keep artwork separate from the application document

Decision: Offer SVG images through the shared artifact tabs for plain fences, or as a visual alone for rendered fences. Start rendering only when the visual is shown and the block approaches the viewport. Sanitize user-authored SVG before rendering or download. Keep static artwork in an image. Animated previews use a sandboxed document with scripts disabled and a policy that blocks resource loads. Chatto controls its timeline from outside that document. Show source if validation or image loading fails. Why: Bots can send diagrams through the existing message body while people can still share ordinary SVG code blocks. Separate rendering prevents author scripts and external resource loads, including connections that would reveal the viewer's IP address. Timeline access permits true pause and resume. Tradeoff: SVG documents must include the SVG namespace and use the supported subset. Removed features can change their appearance. Animated previews require more memory than static images. The source and structure limits reduce rendering cost but do not impose a CPU or memory limit. Other clients can show source. This preview policy does not change uploaded SVG files or Mermaid-generated images.

SVG and Mermaid previews retain a bounded set of intrinsic dimensions. When a virtualized message returns to the viewport, its loading preview reserves the same responsive space as the previous image. This prevents repeated row collapse and scroll corrections. The dimension cache holds at most 256 entries, identified by a digest of the language and source. It retains no message text, SVG, or image URLs. Loaded SVG and Mermaid images can also return with their message: after a row unmounts, its loaded message owns up to eight detached images. A returning row claims its image immediately, without waiting for viewport detection or loading the same image again. Simultaneous views get separate image nodes. Preview identities are scoped to the timeline store, event ID and message body. Reactions, pins and thread updates keep the same identity and mounted images. Body changes, removal from the loaded window, timeline resets and store disposal discard that identity. These weak caches do not keep timeline stores alive. Changed source uses a new image; Mermaid images also refresh their colours when the theme changes. Unfinished render jobs still belong to the mounted HTML version.

7. Mermaid diagrams use Pele and the image boundary

Decision: Recognise mermaid fences with an optional rendered hint, ignoring case. Bundle Pele locally and load its worker only when Render is selected and the diagram approaches the viewport. Display the generated SVG as an image in the shared frame. A loading result must not change the selected tab. Show source on failure. The composer, stored message and message copy retain the source. Use accTitle and accDescr as image text; without them, use the source as the text alternative.

Disable links and external images. Reject frontmatter and configuration directives. Do not supply icon or math markup resolvers. No diagram content is sent to an external service. Apply the current application colours inside each image and update them when the theme changes. Keep Pele's node shapes and group presentation. UI Depth does not change diagram artwork. Author-specified fills remain unchanged.

Allow at most four diagrams per message and 10,000 source characters per diagram. Limit parsed model objects to 1,000, flowchart edges to 250, SVG output to 500,000 characters, each dimension to 8,192 pixels, and area to 16 million pixels. Reuse one worker for sequential jobs and queue at most 32 jobs. Allow up to 30 seconds to load and start the worker; each diagram then has a separate three-second execution limit. Discard the worker after a timeout, worker error or active-job cancellation; the next job starts a new one. An HTML update or unmount cancels its jobs and disposes its mounted image canvases.

Both editors highlight labelled Mermaid source with a shared, lazily loaded grammar. The visual editor includes Mermaid in its language selector. Mermaid is excluded from automatic language detection so a guess cannot enable diagram rendering. Highlighting does not validate the diagram; Pele validates it when rendering. Composer code-block headers show only the language selector. Add or remove the rendered hint in the Markdown source editor. The visual editor preserves existing hints when editing source or changing between artifact languages; choosing another language removes the hint.

Why: Pele supports Mermaid syntax without a remote rendering service. The image boundary also used for SVG prevents active content from entering the application document. Worker termination bounds expensive layout work. Theme colours keep diagrams readable without adding SVG blur filters or app frame effects to the artwork.

Tradeoff: Unsupported, invalid or excessive diagrams remain code. Pele can differ from Mermaid.js. Successful layouts belong to the loaded message body, with at most four entries. Virtualized rows reuse these layouts when they return to view and apply the current theme. The cache does not keep timeline stores alive or share results between messages. Changed source needs a new layout. Surfaces without a loaded message owner render again on remount. Unfinished jobs still stop when their row unmounts. The Markdown hints are provisional until the message presentation interface is reviewed.

8. Emoji shortcodes are display syntax

Decision: Resolve built-in shortcodes at word boundaries when displaying Markdown. Keep their source text in the message body and leave unknown names visible. Apply the same opening boundary to autocomplete. Why: People and bots can send readable emoji names through the existing message API. Boundaries prevent accidental conversion inside words or identifiers. Shared client rules keep name lookup consistent across hosts without changing stored messages or contacting an external service. Tradeoff: Older clients can show the literal shortcode. The visual editor keeps typed shortcodes as text. Custom emoji assets and stable references are not implemented; their identity and rename rules need a separate design.

Decision: Keep URLs and Markdown links in the message body. Replace only automatic URL displays with known entity names. Explicit Markdown labels keep their normal link display. Why: Existing links work across clients without a custom reference format. Current names identify plain URL destinations. Keeping explicit labels preserves the author's sentence. Tradeoff: The pill can differ between readers because their clients know different entities. The URL remains in the message source. Unknown destinations use compact URL labels without claiming that the destination is a Chatto server. Readers can inspect the full URL through hover text or the copy-link action.

10. The frontend bundles Twemoji

Decision: The frontend shows emoji in messages, the composer, reactions, the picker, and all other app text with a bundled Twemoji color font. tools/build-twemoji-font.py builds the font from a pinned jdecked/twemoji release, and the repository keeps the result. mise update-twemoji-font builds it again. Every frontend build includes the font: the frontend that the server embeds, the standalone frontend image, the desktop app, and the mobile app. Why: Emoji look the same for all members on all platforms, and the emoji that a sender sees is the emoji that the reader sees. The font file is approximately 0.6 MB. The browser downloads it from the frontend origin, and only when a page shows emoji, so it adds no third-party connection. A committed font keeps builds and CI free of the font tool chain. Tradeoff: The font is first in each font stack and has a unicode-range that excludes ASCII and ©, ®, and ™. Safari selects the system emoji font for emoji presentation sequences when the emoji font comes after the text font. A second face of the same font comes after the text font and draws keycap emoji, such as 1️⃣, because the text font draws digits but not the complete keycap sequence. Some symbols that are also emoji, such as ↔ and ☺, show as Twemoji also without U+FE0F. Emoji that are newer than the pinned Twemoji release use the system emoji font until the font is built again.

Records that name this record

Esc