Skip to content

Comments

Make <preface> not produce a new page by default#242

Merged
Girgias merged 1 commit intophp:masterfrom
lacatoire:fix/preface-no-chunk
Feb 17, 2026
Merged

Make <preface> not produce a new page by default#242
Girgias merged 1 commit intophp:masterfrom
lacatoire:fix/preface-no-chunk

Conversation

@lacatoire
Copy link
Contributor

Summary

  • <preface> elements are now rendered inline in the parent page instead of being chunked into separate pages
  • Explicit annotations (chunk:true or phd:chunk="true") can still force chunking
  • Both the indexer (Index.php) and the PHP XHTML renderer are updated consistently

Test plan

  • New test tests/index/preface_no_chunk.phpt verifies default preface is not chunked, annotations="chunk:true" forces chunking, and annotations="chunk:false" remains non-chunked
  • Existing indexing_001.phpt and bug_GH-98.phpt still pass

Preface elements are now rendered inline in the parent page instead of
being chunked into separate pages. Explicit annotations like
chunk:true or phd:chunk="true" can still force chunking.
@Girgias Girgias merged commit 8755a92 into php:master Feb 17, 2026
7 checks passed
@lacatoire lacatoire deleted the fix/preface-no-chunk branch February 17, 2026 14:31
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.

2 participants