Skip to content

feature: support an array of values for heading.min_width #182

@hneutr

Description

@hneutr

Is your feature request related to a problem? Please describe.

I'd love to have varying levels of min_width depending on the header level. An example config:

require('render-markdown').setup({
    heading = {
        enabled = true,
        width = {'full', 'block', 'block'},
        min_width = {-1, 60, 40},
    },
})

Describe the solution you'd like

Behavior similar to heading.width, ie support both cycle and clamp behavior for the arrays.

Describe alternatives you've considered

Interpret numbers in the header.width field as min_width. An example config:

require('render-markdown').setup({
    heading = {
        enabled = true,
        width = {'full', 60, 40},
    },
})

Additional information

This plugin is awesome. I really appreciate all the work you've put into it!

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