Skip to content

Different settings for different heading levels? #240

Closed Answered by MeanderingProgrammer
einarpersson asked this question in Q&A
Discussion options

You must be logged in to vote

This was supported for the padding configurations but not the border, added that here: c83fc56.

The border can now be a single value like before, or a list of values where the last value in the list is used for the remaining headings.

So if you want only h1 & h2 to have borders but not h3 -> h6 you would do the following:

require('render-markdown').setup({
    heading = {
        border = { true, true, false },
    },
})

You can do the same thing for the width, left_pad, right_pad, left_margin and min_width configurations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MeanderingProgrammer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants