-
Notifications
You must be signed in to change notification settings - Fork 61
Set padding character for inline code #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
enhancement
New feature or request
Comments
MeanderingProgrammer
added a commit
that referenced
this issue
Apr 3, 2025
## Details Request: #389 Allows users to set text values for `code.inline_left` & `code.inline_right` which will be added to the left and right of inline code blocks. Will be combined with `code.inline_pad`. Example using half circles: ```lua require('render-markdown').setup({ code = { inline_left = '', inline_right = '' }, }) ``` Highlight gets created by inverting the padding highlight in a similar way we do for `thin` code borders. Minor other change, re-order class definitions to be top down.
Done: b292624 Example: require('render-markdown').setup({
code = { inline_left = '', inline_right = '' },
}) Highlight should work out of the box by inverting the one used for the background so that value is not configurable. You can still modify Neat suggestion, thanks! |
Wow, that is exactly what I imagined👌, perfect, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I'd like to be able to set the padding character for an inline code segment:
inline code
I currently set the padding value to
1
and this highlights it with a square background.I'd like to use a character like this (might need to view it by pasting into terminal):
to enable making the background a rounded shape.
Describe the solution you'd like
An option to set a left & right padding character, alongside any necessary highlights
Describe alternatives you've considered
leaving it as a square (which is still nice 🥇)
Additional information
No response
The text was updated successfully, but these errors were encountered: