In a markdown file with no space between the previous text/start of file, the markdown heading, and the list below the heading, the bullets of the list are removed when running AutolistRecalculate
We start with a file:
# This is a test
- this is a test
- this is a test
Then running AutolistRecalculate we get
# This is a test
this is a test
this is a test
click here for config
```lua
return {
"gaoDean/autolist.nvim",
ft = {
"markdown"
},
config = function()
local list_patterns = {
unordered = "[-+]", -- - +
digit = "%d+[.)]", -- 1. 2. 3. ...
ascii = "%a[.)]", -- a) b) c) ...
roman = "%u*[.)]", -- I. II. III. ...
latex_item = "\\item",
}
require("autolist").setup({
enabled = true,
lists = {
markdown = {
list_patterns.unordered,
list_patterns.digit,
list_patterns.ascii,
list_patterns.roman,
},
},
})
end,
}
```
In a markdown file with no space between the previous text/start of file, the markdown heading, and the list below the heading, the bullets of the list are removed when running
AutolistRecalculate
We start with a file:
Then running
AutolistRecalculate
we getclick here for config
```lua return { "gaoDean/autolist.nvim", ft = { "markdown" }, config = function() local list_patterns = { unordered = "[-+]", -- - + digit = "%d+[.)]", -- 1. 2. 3. ... ascii = "%a[.)]", -- a) b) c) ... roman = "%u*[.)]", -- I. II. III. ... latex_item = "\\item", } require("autolist").setup({ enabled = true, lists = { markdown = { list_patterns.unordered, list_patterns.digit, list_patterns.ascii, list_patterns.roman, }, }, }) end, } ```