Skip to content

Conversation

@Alexnortung
Copy link
Contributor

@Alexnortung Alexnortung commented Dec 12, 2025

This pull request is a draft as I would like some feedback for the direction.

I think it would be beneficial to be able to provide cached data for the table of contents, just like other fields.

Does the ToCEntry type make sense, should it be defined elsewhere? Or should it be something else entirely?

Does other properties also influence the output?

TODO:

  • Find the correct value for space left of each level
  • Find the correct value for the page width
  • Clean up
  • Add tests
  • Documentation

@Alexnortung Alexnortung force-pushed the feat/toc-cached branch 3 times, most recently from 1e6c09f to 7bb778c Compare December 12, 2025 10:13
@Alexnortung
Copy link
Contributor Author

For some reason, the level margin doesn't work as expected, not sure why

This commit can be squashed with the previous one if necessary
@Alexnortung Alexnortung marked this pull request as ready for review December 12, 2025 13:08
@Alexnortung
Copy link
Contributor Author

I am not sure why test is failing. I am pretty sure I am covering all code paths in the code that I have added.

Also what is wrong with the CSpell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant