Different settings for different heading levels? #240
-
I want h1 and h2 to stand out more than h3, h4 etc. I have border and padding enabled for headings but would like to if possible remove it for the h3, h4 and beyond. It does not look like this is possible atm, is it the case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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:
You can do the same thing for the
width
,left_pad
,right_pad
,left_margin
andmin_width
configurations.