You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ui): render Markdown code without programming ligatures #1431
Markdown code can render repeated punctuation with Geist Mono programming ligatures instead of preserving the literal glyphs.
For example, a fenced text block containing ### P1 — ... renders the three hash characters as a combined glyph. Its ink and advance extend to the left, making the line appear misaligned relative to neighboring lines such as ## Findings.
Expected behavior: code surfaces render every source character literally and retain consistent code-block alignment.
How to reproduce
Run the Desktop app from the current main branch.
Render an assistant response containing:
## Findings
### P1 — request cancellation may still write state
packages/runtime/src/runner.ts:142
Compare the left edge and character spacing of the ## and ### lines.
Environment
Maka commit: 0aabde977
OS: macOS 26.5.2
Surface: Desktop
Node.js: v26.5.0
Logs, screenshots, or additional context
The Markdown code surface uses Geist Mono Variable through --font-mono.
apps/desktop/src/renderer/styles/prose.css applies the mono font to .maka-prose code, but does not disable font ligatures. Other literal code/output surfaces already use font-variant-ligatures: none, including .maka-code in maka-tokens.css.
Suggested direction
Disable ligatures at the semantic Markdown code boundary, preferably .maka-prose code, so both inline and fenced code inherit literal character shaping. Avoid a sample-specific offset or a patch scoped only to ###.
Acceptance criteria
Markdown inline and fenced code render repeated/operator characters literally, including ###, ===, and =>.
Fenced code lines retain consistent left alignment.
Non-code prose typography is unchanged.
Add a focused regression contract in apps/desktop/src/main/__tests__/markdown-prose-contract.test.ts.
Activity
sunheyi6 commentedon Jul 24, 2026
Claiming this issue.
PR opened against upstream
main: #1454.maka-prose code(font-variant-ligatures: none) so Markdown inline/fenced code renders###/===/=>literallyMARKDOWN-CODE-LITERAL-LIGATURES-0inmarkdown-prose-contract.test.tsfix(ui): render Markdown code without programming ligatures (#1454)
fix(ui): stop prose spacing at the literal-code boundary, drop the in…
fix(ui): space CJK-Latin mixed prose in Markdown answers (#1482)