Skip to content

Cannot have more than one character as headings symbol #12

Closed
@Rukenshia

Description

@Rukenshia

Just found this cool plugin and wanted to customise it.

I wanted to replace the default heading symbols (because they're super tiny at least with my current font) with something else so I figured I would use h1., h2., and so on as the characters replacing the # in headings.

I used this config

return {
  'MeanderingProgrammer/markdown.nvim',
  dependencies = { 'nvim-treesitter/nvim-treesitter' },
  config = function()
    require('render-markdown').setup {
      headings = { 'h ', 'h2. ', 'h3. ', 'h4. ', 'h5. ', 'h6. ' },
    }
  end,
}

and have this markdown file

# heading

## subheading

I see this:

imagen
  • Heading with a single character + space (h ) works fine
  • Heading with more characters seem to cut off the subheading text

I'm not sure if it is intended like this (only allowing a single character), or if I'm doing stuff wrong, but the documentation for headings only says -- Characters that will replace the # at the start of headings which left it a bit unclear to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    not a bugNot a bug in this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions