Skip to content

bug: multi line equations rendering as one line #309

@paperbenni

Description

@paperbenni

Did you read the documentation and check existing issues?

Neovim version (nvim -v)

0.11.2

Operating system/version

Arch

Browser/version

Firefox 140.0

Describe the bug

Image
Anything multi line renders as a single line, this applies to matrices, aligned environments and probably others as well. Fractions are strangely unaffected.

Side note, github has the same bug 😅
Their markdown implementation is hot garbage and doesn't adhere to their own spec.
I tried to reproduce this with a minimal implementation based on react, and the issue is not present
https://github.com/paperbenni/livedown

Steps To Reproduce

  1. Create markdown document with latex blocks
# Hello
$$
\Sigma = \begin{pmatrix}
    a & 0 \\ 0 & b
\end{pmatrix}
$$

Expected Behavior

render like katex without github styling (or whatever is causing the problem) and other latex compilers do

Health

==============================================================================
livepreview:                                                              1 ⚠️

Check dependencies ~
- ✅ OK Nvim 0.11.2 is compatible with Live Preview
- ✅ OK `sh` is available
- ✅ OK `mini.pick` is installed
- ✅ OK `fzf-lua` is installed
- ⚠️ WARNING `telescope` (optional) is not installed

Checkhealth server and process ~
- ✅ OK This Nvim process's PID is 1632188
- ✅ OK Server is healthy on port 5500
- ✅ OK Server root: /home/benjamin/ufr/stochastik

Check your live-preview.nvim config ~
- Your configuration table
- {
    browser = "default",
    dynamic_root = false,
    picker = "",
    port = 5500,
    sync_scroll = true
  }

Minimal config to reproduce

vim.cmd.set "rtp+=/path/to/live-preview.nvim"

require("livepreview.config").set {
  --- Configuration here
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions