Replies: 3 comments 18 replies
-
This is not currently possible. I tried implementing something like this before and it ended up being fairly complicated and not looking that good (at least in my opinion). There are some edge cases to handle as well, like the language isn't the only thing that can appear in the info string above code blocks, for example this is also valid:
You're welcome to give implementing it a shot, here's a previous request for this feature with some more context: #288 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I should be more clear about what the current behavior is. When the We're effectively going from using Maybe it makes more sense to add a new
Yeah, honestly don't think I want to bother fixing these until someone creates an issue about it. In general there are probably more weird behaviors in the case where the info line is wider than anything in the code body, but in practice I don't think this happens often. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys. Thanks for such a great plugin!
I have a quick question, let's say I have the following config for code blocks:
language_icon = true,
language_name = true,
border = 'thin',
above = "─",
below = "─",
If I set either language_icon or language_name to true, the "above" characters doesn't get rendered.
Is it possible to use these together? Maybe with an extra line above the language name and icon for the "above" characters? Or on the same line as the language name and icon, following it with a little padding (or before it if language rendered to the right)?
Beta Was this translation helpful? Give feedback.
All reactions