Skip to content

bug: codeblock with brackets rendering bug #468

Open
@zsh-sage

Description

@zsh-sage

Neovim version (nvim -v)

0.11.2

Neovim distribution

N/A

Operating system

MacOs

Terminal emulator / GUI

WezTerm (in Ghostty too)

Describe the bug

executable codeblock gets rendered as
icon + language_name + language name last char + }

[]pythonn}
Image

Expected behavior

rendering without redundant characters

Healthcheck output

==============================================================================
render-markdown:                                                          1 ⚠️

render-markdown.nvim [version] ~
- ✅ OK plugin 8.5.12
- ✅ OK neovim >= 0.11

render-markdown.nvim [configuration] ~
- ✅ OK valid

render-markdown.nvim [treesitter] ~
- ✅ OK markdown: parser installed
- ✅ OK markdown: highlights ~/.local/share/nvim/lazy/nvim-treesitter/queries/markdown/highlights.scm
- ✅ OK markdown: highlighter enabled
- ✅ OK markdown_inline: parser installed
- ✅ OK markdown_inline: highlights ~/.local/share/nvim/lazy/nvim-treesitter/queries/markdown_inline/highlights.scm
- ✅ OK latex: parser installed
- ✅ OK html: parser installed

render-markdown.nvim [icons] ~
- ✅ OK using: nvim-web-devicons

render-markdown.nvim [executables] ~
- ⚠️ WARNING latex2text: not installed
  - ADVICE:
    - disable latex support to avoid this warning
    - require('render-markdown').setup({ latex = { enabled = false } })

render-markdown.nvim [conflicts] ~
- ✅ OK headlines: not installed
- ✅ OK markview: not installed
- ✅ OK obsidian: installed but should not conflict

Plugin configuration

RenderMarkdown config {
  code = {
    border = "thick",
    min_width = 100,
    width = "block"
  },
  completions = {
    lsp = {
      enabled = true
    }
  },
  file_types = {
    [2] = "Avante",
    [3] = "AvanteInput",
    [4] = "codecompanion",
    [5] = "quarto"
  },
  indent = {
    per_level = 1,
    skip_heading = true
  }
}

Plugin error log

N/A

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.

Additional information

No response

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