|
1 | | -*render-markdown.txt* For 0.10.0 Last change: 2024 December 04 |
| 1 | +*render-markdown.txt* For 0.10.0 Last change: 2024 December 05 |
2 | 2 |
|
3 | 3 | ============================================================================== |
4 | 4 | Table of Contents *render-markdown-table-of-contents* |
@@ -409,14 +409,20 @@ Default Configuration ~ |
409 | 409 | -- Turn on / off list bullet rendering |
410 | 410 | enabled = true, |
411 | 411 | -- Replaces '-'|'+'|'*' of 'list_item' |
412 | | - -- How deeply nested the list is determines the 'level' which is used to index into the list using a cycle |
413 | | - -- The item number in the list is used to index into the value using a clamp if the value is also a list |
| 412 | + -- How deeply nested the list is determines the 'level', how far down at that level determines the 'index' |
| 413 | + -- If a function is provided both of these values are passed in using 1 based indexing |
| 414 | + -- If a list is provided we index into it using a cycle based on the level |
| 415 | + -- If the value at that level is also a list we further index into it using a clamp based on the index |
414 | 416 | -- If the item is a 'checkbox' a conceal is used to hide the bullet instead |
415 | 417 | icons = { '●', '○', '◆', '◇' }, |
416 | 418 | -- Replaces 'n.'|'n)' of 'list_item' |
417 | | - -- How deeply nested the list is determines the 'level' which is used to index into the list using a cycle |
418 | | - -- The item number in the list is used to index into the value using a clamp if the value is also a list |
419 | | - ordered_icons = {}, |
| 419 | + -- How deeply nested the list is determines the 'level', how far down at that level determines the 'index' |
| 420 | + -- If a function is provided both of these values are passed in using 1 based indexing |
| 421 | + -- If a list is provided we index into it using a cycle based on the level |
| 422 | + -- If the value at that level is also a list we further index into it using a clamp based on the index |
| 423 | + ordered_icons = function(level, index) |
| 424 | + return string.format('%d.', index) |
| 425 | + end, |
420 | 426 | -- Padding to add to the left of bullet point |
421 | 427 | left_pad = 0, |
422 | 428 | -- Padding to add to the right of bullet point |
@@ -896,14 +902,20 @@ Bullet Point Configuration ~ |
896 | 902 | -- Turn on / off list bullet rendering |
897 | 903 | enabled = true, |
898 | 904 | -- Replaces '-'|'+'|'*' of 'list_item' |
899 | | - -- How deeply nested the list is determines the 'level' which is used to index into the list using a cycle |
900 | | - -- The item number in the list is used to index into the value using a clamp if the value is also a list |
| 905 | + -- How deeply nested the list is determines the 'level', how far down at that level determines the 'index' |
| 906 | + -- If a function is provided both of these values are passed in using 1 based indexing |
| 907 | + -- If a list is provided we index into it using a cycle based on the level |
| 908 | + -- If the value at that level is also a list we further index into it using a clamp based on the index |
901 | 909 | -- If the item is a 'checkbox' a conceal is used to hide the bullet instead |
902 | 910 | icons = { '●', '○', '◆', '◇' }, |
903 | 911 | -- Replaces 'n.'|'n)' of 'list_item' |
904 | | - -- How deeply nested the list is determines the 'level' which is used to index into the list using a cycle |
905 | | - -- The item number in the list is used to index into the value using a clamp if the value is also a list |
906 | | - ordered_icons = {}, |
| 912 | + -- How deeply nested the list is determines the 'level', how far down at that level determines the 'index' |
| 913 | + -- If a function is provided both of these values are passed in using 1 based indexing |
| 914 | + -- If a list is provided we index into it using a cycle based on the level |
| 915 | + -- If the value at that level is also a list we further index into it using a clamp based on the index |
| 916 | + ordered_icons = function(level, index) |
| 917 | + return string.format('%d.', index) |
| 918 | + end, |
907 | 919 | -- Padding to add to the left of bullet point |
908 | 920 | left_pad = 0, |
909 | 921 | -- Padding to add to the right of bullet point |
|
0 commit comments