Skip to content

Refactor LTML indexes and leader rendering#100

Merged
rowland merged 7 commits intomasterfrom
index2
Apr 27, 2026
Merged

Refactor LTML indexes and leader rendering#100
rowland merged 7 commits intomasterfrom
index2

Conversation

@rowland
Copy link
Copy Markdown
Owner

@rowland rowland commented Apr 27, 2026

Summary

  • Rework <index> to expand a repeated row template through normal container layout, with new index-title, index-page, and index-leader placeholders.
  • Add a shared text-leaf core for paragraphs, labels, and sectors to reduce duplicated rich-text plumbing.
  • Introduce a general inline <leader> primitive and refine default leader spacing so TOC numbers stay edge-aligned without feeling cramped.
  • Normalize the public index tag spelling to <index-entry>, update docs and samples, and add new RTL and multi-page index coverage.

Testing

  • Added and updated LTML unit tests for index parsing, leader wrapping, spacing, font overrides, and RTL behavior.
  • Rendered updated samples locally to verify the new index layouts, including the Arabic index sample and the expanded TOC sample.
  • go test ./ltml passes.

@rowland rowland merged commit 9fdb41d into master Apr 27, 2026
2 checks passed
@rowland rowland deleted the index2 branch April 27, 2026 22:48
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