Replies: 1 comment 1 reply
-
Yes, you can. The Based on your example here's what you would do: require('render-markdown').setup({
heading = {
icons = function(ctx)
return table.concat(ctx.sections, '.') .. ' '
end,
},
}) You're free to change this however you feel, maybe adding an icon in some cases, changing how the values are joined together, changing the suffix, it's all completely up to you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just like turning
Heading 1......
Heading 1 1......
Heading 2......
Heading 2 1......
Heading 2 1 1......
Heading 2 1 2......
Heading 2 2......
Heading 2 2 1......
into the following format
1 Heading 1......
1.1 Heading 1 1......
2 Heading 2......
2.1 Heading 2 1......
2.1.1 Heading 2 1 1......
2.1.2 Heading 2 1 2......
2.2 Heading 2 2......
2.2.1 Heading 2 2 1......
Beta Was this translation helpful? Give feedback.
All reactions