Skip to content

fix(ui): render Markdown code without programming ligatures - #1454

Merged
Astro-Han merged 1 commit into
apache:mainfrom
sunheyi6:fix/markdown-code-ligatures-1431
Jul 24, 2026
Merged

Astro-Han merged 1 commit into
apache:mainfrom
sunheyi6:fix/markdown-code-ligatures-1431

Conversation

@sunheyi6

Copy link
Copy Markdown
Contributor

Summary

  • Disable Geist Mono programming ligatures on .maka-prose code so Markdown inline and fenced code render ###, ===, and => literally (and keep consistent left alignment in fenced blocks).
  • Align with the existing .maka-code policy (font-variant-ligatures: none); non-code prose typography is unchanged.
  • Add MARKDOWN-CODE-LITERAL-LIGATURES-0 regression contract in markdown-prose-contract.test.ts.

Closes #1431

Test plan

  • npx tsx --test apps/desktop/src/main/__tests__/markdown-prose-contract.test.ts (20/20 pass)
  • Desktop: render a fenced text block with ## Findings and ### P1 — ...; confirm left edges and spacing stay aligned
  • Desktop: confirm non-code prose (headings/paragraphs) still uses normal typography ligatures

Geist Mono collapses runs like ### / === / => in Markdown code, which misaligns fenced lines. Disable ligatures on .maka-prose code so inline and fenced code stay literal, matching .maka-code.

Closes apache#1431
@Astro-Han
Astro-Han merged commit cac049c into apache:main Jul 24, 2026
3 checks passed
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.

fix(ui): render Markdown code without programming ligatures

2 participants