Skip to content

bug: text in [brackets] displayed as link (shortcut link) #655

@marchyman

Description

@marchyman

Neovim version (nvim -v)

NVIM v0.13.0-dev-499+g6780e78b09

Neovim distribution

N/A

Operating system

MacOS

Terminal emulator / GUI

Ghostty

Describe the bug

Text inside of brackets is displayed as a link with the brackets hidden. Running InspectTree shows that the text is typed as a 'shortcut_link' by treesitter. I did not notice any way of disabling rendering for such links.

Expected behavior

I expect to see the brackets rendered as they are part of the text, not a link.

Healthcheck output

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

render-markdown.nvim [versions] ~
- ✅ OK neovim >= 0.11
- ✅ OK tree-sitter ABI: 15
- ✅ OK plugin: 8.12.15

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

render-markdown.nvim [tree-sitter markdown] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim/site/queries/markdown/highlights.scm
- ✅ OK highlighter: enabled

render-markdown.nvim [tree-sitter markdown_inline] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim/site/queries/markdown_inline/highlights.scm

render-markdown.nvim [tree-sitter html] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14

render-markdown.nvim [tree-sitter yaml] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15

render-markdown.nvim [icons] ~
- ⚠️ WARNING none installed

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

Plugin configuration

{
  completions = {
    lsp = {
      enabled = true
    }
  },
  heading = {
    border = true,
    min_width = 60,
    position = "inline",
    width = "block"
  },
  latex = {
    enabled = false
  }
}

Plugin error log

N/A

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • I have updated all treesitter parsers (:TSUpdate)
  • 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