3. Move cursor to line under `# test` and fold (e.g. with `zc`)
4. Notice it includes the empty lines. `nvim-treesitter` does *not* do this. It trims these emtpy lines from the region [here](https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/markdown/folds.scm#L8).
### Expected behavior
```markdown
# test...
# new header
Expect it to use treesitter to get its folds, and thus exclude empty lines from fold. This behaviour can be seen by disabling nvim-ufo (in the lazy.nvim config above, add enabled = false). Restart nvim and run: set foldmethod=expr foldexpr=nvim_treesitter#foldexpr(). This should exclude the empty lines in the fold.
Neovim version (nvim -v | head -n1)
NVIM v0.10.0-dev-743+g9b5f58185-Homebrew
Operating system/version
MacOS 14.0
How to reproduce the issue
test
new header
Expect it to use treesitter to get its folds, and thus exclude empty lines from fold. This behaviour can be seen by disabling nvim-ufo (in the lazy.nvim config above, add
enabled = false
). Restart nvim and run:set foldmethod=expr foldexpr=nvim_treesitter#foldexpr()
. This should exclude the empty lines in the fold.Actual behavior
It includes the empty lines in the fold.