Skip to content

bug: texts surrounded by <> become invisible when rendered #345

Description

@joshuali925

Did you read the documentation and check existing issues?

Neovim version (nvim -v)

0.11.0

Operating system/version

Ubuntu 22.04

Browser/version

Chrome 143.0.7499.147

Describe the bug

Some texts in markdown become invisible when viewing in browser. Specifically anything with < and > surrounded.

Steps To Reproduce

  1. Clone the plugin git clone https://github.com/brianhuster/live-preview.nvim
  2. Open Nvim with minimal repro file nvim -u minimal_init.lua
  3. Create a markdown file with text: ls <path>
  4. Run live preview
  5. See only ls in browser

Expected Behavior

Should render the markdown file accurately

Health

==============================================================================
livepreview:                             require("livepreview.health").check()

Check dependencies ~
- OK Nvim 0.11.0 is compatible with Live Preview
- OK `sh` is available
- OK `mini.pick` is installed
- WARNING `telescope` (optional) is not installed
- WARNING `vim.ui.select` (optional) is not installed
- WARNING `fzf-lua` (optional) is not installed
- OK `snacks.picker` is installed

Checkhealth server and process ~
- OK This Nvim process's PID is 38147
- OK Server is healthy on port 5500
- OK Server root: /tmp

Check your live-preview.nvim config ~
- Your configuration table >lua
  {
    address = "0.0.0.0",
    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 {}

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions