Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC generation fails when headings have multiple detached modifiers #1630

Closed
2 tasks done
benlubas opened this issue Jan 9, 2025 · 0 comments · Fixed by #1631
Closed
2 tasks done

TOC generation fails when headings have multiple detached modifiers #1630

benlubas opened this issue Jan 9, 2025 · 0 comments · Fixed by #1631
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@benlubas
Copy link
Contributor

benlubas commented Jan 9, 2025

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

0.10.3

Neorg setup

Default

Actual behavior

:Neorg toc

Error executing vim.schedule lua callback: vim/_editor.lua:0: nvim_exec2(): Vim:Error executing Lua callback: ...s/github/neorg/lua/neorg/modules/core/qol/toc/module.lua:308: attempt to index field 'title' (a nil value)
stack traceback:
	...s/github/neorg/lua/neorg/modules/core/qol/toc/module.lua:308: in function 'update_toc'

Expected behavior

Should be able to handle there without errors

Steps to reproduce

File content:

* ( |# what) Hey there
  1. run :Neorg toc

Potentially conflicting plugins

No response

Other information

No response

Help

Yes

Implementation help

No response

@benlubas benlubas added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Jan 9, 2025
@github-project-automation github-project-automation bot moved this to added-updated-reopened in sorting neorg issue tracker Jan 9, 2025
@github-project-automation github-project-automation bot moved this from added-updated-reopened to done in sorting neorg issue tracker Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant