1- *render-markdown.txt* For NVIM v0.11.4 Last change: 2025 October 09
1+ *render-markdown.txt* For NVIM v0.11.4 Last change: 2025 October 13
22
33==============================================================================
44Table of Contents *render-markdown-table-of-contents*
@@ -589,6 +589,9 @@ Default Configuration ~
589589 style = 'full' ,
590590 },
591591 dash = {
592+ -- Useful context to have when evaluating values.
593+ -- | width | width of the current window |
594+
592595 -- Turn on / off thematic break rendering.
593596 enabled = true,
594597 -- Additional modes to render dash.
@@ -597,9 +600,11 @@ Default Configuration ~
597600 -- The icon gets repeated across the window's width.
598601 icon = '─',
599602 -- Width of the generated line.
600- -- | <number> | a hard coded width value |
601- -- | full | full width of the window |
602603 -- If a float < 1 is provided it is treated as a percentage of available window space.
604+ -- Output is evaluated depending on the type.
605+ -- | function | `value (context)` |
606+ -- | number | `value` |
607+ -- | full | width of the window |
603608 width = 'full' ,
604609 -- Amount of margin to add to the left of dash.
605610 -- If a float < 1 is provided it is treated as a percentage of available window space.
@@ -1247,6 +1252,9 @@ Dashed Line Configuration ~
12471252>lua
12481253 require('render-markdown').setup({
12491254 dash = {
1255+ -- Useful context to have when evaluating values.
1256+ -- | width | width of the current window |
1257+
12501258 -- Turn on / off thematic break rendering.
12511259 enabled = true,
12521260 -- Additional modes to render dash.
@@ -1255,9 +1263,11 @@ Dashed Line Configuration ~
12551263 -- The icon gets repeated across the window's width.
12561264 icon = '─',
12571265 -- Width of the generated line.
1258- -- | <number> | a hard coded width value |
1259- -- | full | full width of the window |
12601266 -- If a float < 1 is provided it is treated as a percentage of available window space.
1267+ -- Output is evaluated depending on the type.
1268+ -- | function | `value (context)` |
1269+ -- | number | `value` |
1270+ -- | full | width of the window |
12611271 width = 'full' ,
12621272 -- Amount of margin to add to the left of dash.
12631273 -- If a float < 1 is provided it is treated as a percentage of available window space.
0 commit comments