Skip to content

feature: Support custom titles for callouts #109

@AquilesGomez

Description

@AquilesGomez

Neovim version (nvim -v)

0.10.1

Operating system

MacOS

Terminal emulator / GUI

Iterm2

Describe the bug

When I add a title to a callout block header, the rendering
doesn't keep the space between the text properly.
Screenshot 2024-07-31 at 8 25 04 AM

Expected behavior

I expect the Title to have spaces between the callout block and the title

Healthcheck output

==============================================================================
render-markdown: require("render-markdown.health").check()

markdown.nvim [neovim version] ~

  • OK Version >= 0.10

markdown.nvim [configuration] ~

  • OK valid

markdown.nvim [nvim-treesitter] ~

  • OK installed
  • OK markdown: parser installed
  • OK markdown_inline: parser installed
  • WARNING latex: parser not installed
    • ADVICE:
      • Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }
  • OK highlights enabled

markdown.nvim [executables] ~

  • WARNING latex2text: not installed
    • ADVICE:
      • Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }

Plugin configuration

require("render-markdown").setup {
callout = {
done = { raw = "[!Done]", rendered = "󰄬 Done", highlight = "RenderMarkdownSuccess" },
info = { raw = "[!info]", rendered = "󰋽 Info", highlight = "RenderMarkdownInfo" },
time = { raw = "[!timestamp]", rendered = " Timestamp", highlight = "RenderMarkdownInfo" },
},
}

Confirmations

  • I have provided markdown text for any screenshots used in my description & understand that my issue will be closed if I have not

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions