diff --git a/lua/neorg/modules/core/concealer/module.lua b/lua/neorg/modules/core/concealer/module.lua index 6430d08ca..6902b76b0 100644 --- a/lua/neorg/modules/core/concealer/module.lua +++ b/lua/neorg/modules/core/concealer/module.lua @@ -353,7 +353,8 @@ local function get_ordered_index(bufid, prefix_node) -- TODO: calculate levels in one pass, since treesitter API implementation seems to have ridiculously high complexity local _, _, level = get_node_position_and_text_length(bufid, prefix_node) local header_node = prefix_node:parent() - assert(header_node:type() .. "_prefix" == prefix_node:type()) + -- TODO: fix parser: `(ERROR)` on standalone prefix not followed by text, like `- ` + -- assert(header_node:type() .. "_prefix" == prefix_node:type()) local sibling = header_node:prev_named_sibling() local count = 1