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? |
Answered by
MeanderingProgrammer
Nov 22, 2024
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 |
0 replies
Answer selected by
MeanderingProgrammer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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:
You can do the same thing for the
width,left_pad,right_pad,left_marginandmin_widthconfigurations.