-
Notifications
You must be signed in to change notification settings - Fork 44
CodeBlocks
MeanderingProgrammer edited this page Oct 13, 2024
·
7 revisions
Raw data being used:
# Code Blocks
```python
def main() -> None:
print("Hello, World!")
```
```rust
fn main() {
println!("Hello, World!");
}
```
require('render-markdown').setup({
code = {
enabled = true,
sign = true,
style = 'full',
position = 'left',
language_pad = 0,
language_name = true,
disable_background = { 'diff' },
width = 'full',
left_margin = 0,
left_pad = 0,
right_pad = 0,
min_width = 0,
border = 'thin',
above = '▄',
below = '▀',
highlight = 'RenderMarkdownCode',
highlight_inline = 'RenderMarkdownCodeInline',
highlight_language = nil,
},
})
require('render-markdown').setup({
code = { sign = false },
})
require('render-markdown').setup({
code = { style = 'normal' },
})
require('render-markdown').setup({
code = { sign = 'language' },
})
require('render-markdown').setup({
code = {
width = 'block',
left_pad = 2,
right_pad = 4,
},
})
require('render-markdown').setup({
code = {
width = 'block',
min_width = 45,
},
})
require('render-markdown').setup({
code = {
width = 'block',
min_width = 45,
left_pad = 2,
language_pad = 2,
},
})
require('render-markdown').setup({
code = {
width = 'block',
left_margin = 0.5,
left_pad = 0.2,
right_pad = 0.2,
},
})
require('render-markdown').setup({
code = {
position = 'right',
width = 'block',
right_pad = 10,
},
})
require('render-markdown').setup({
code = {
style = 'normal',
border = 'thick',
},
})