Skip to content

Support LaTex rendering in markdown preview #40813

Description

@micodo

Summary

Markdown preview does not render formulas in preview output and does not show any output for formula text.

Description

Formulas like $$E = m \times c^2$$ and $\sqrt{3x-1}+(1+x)^2$ are not rendered or shown in output.

Steps to reproduce:

  1. Open a markdown file with formulas enclosed in $ or $$
  2. Open the markdown preview

Expected Behavior:

Formulas are rendered like for instance in GitHub or VSCode:

$$E = m \times c^2$$ is rendered like $$E = m \times c^2$$
$\sqrt{3x-1}+(1+x)^2$ is rendered like $\sqrt{3x-1}+(1+x)^2$.

Actual Behavior:

Formulas are not rendered and their source is also not visible.

Zed Version and System Specs

Zed: v0.208.5 (Zed)
OS: macOS 26.0.1
Memory: 24 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions