Skip to content

bug: Callout does not render second Blockquote after Heading #625

@Konstantinos145

Description

@Konstantinos145

Neovim version (nvim -v)

v0.11.6

Neovim distribution

N/A

Operating system

Arch Linux

Terminal emulator / GUI

alacritty

Describe the bug

In a markdown file, when a Blockquote contains a Heading (> # Heading) following Blockquotes at the same level fail to render. If you put the Heading in a separate Blockquote everything renders correctly.

--- Here is the file in text form

Heading

Something for blockcode 1

[!tip] Blockcode 2

Something for blockcode 2

Without callout
something more
something more

Heading

Something for blockcode 1

[!tip] Blockcode 2

Something for blockcode 2

Without callout
something more
something more

Image

Expected behavior

Each Blockquote in subsequent level to be rendered, without needing to but the Heading on each own.

Healthcheck output

==============================================================================
render-markdown:                                                            ✅

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

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

render-markdown.nvim [tree-sitter markdown] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim_ide/lazy/nvim-treesitter/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_ide/lazy/nvim-treesitter/queries/markdown_inline/highlights.scm

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

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

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

Plugin configuration

{
  checkbox = {
    custom = {
      important = {
        highlight = "DiagnosticWarn",
        raw = "[~]",
        rendered = "󰅖",
        scope_highlight = "@markup.strikethrough"
      }
    }
  },
  heading = {
    icons = { "󰫎 ", vim.NIL, vim.NIL, vim.NIL, vim.NIL, vim.NIL },
    position = "inline",
    sign = false
  },
  latex = {
    enabled = false
  },
  yaml = {
    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