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

Replace header attribute contexts with sections #258

Closed
Witiko opened this issue Feb 1, 2023 · 0 comments · Fixed by #264
Closed

Replace header attribute contexts with sections #258

Witiko opened this issue Feb 1, 2023 · 0 comments · Fixed by #264
Labels
lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation quality of life Related to quality-of-life improvements to the interface
Milestone

Comments

@Witiko
Copy link
Owner

Witiko commented Feb 1, 2023

As described in Section 2.4 of our article in TUGboat 43:1, header attribute contexts surround entire sections of content, which makes it difficult to react to attributes by inserting code after a header (rather than after a section) and makes it impossible to react to arbitrary sections, which may or may not have headings with attributes.

This issue proposes to create separate renderers for sections and make the header attribute contexts span just headings. We can introduce the section renderers early but changing the semantics of the header attribute contexts is a breaking change that should be postponed until version 3.0.0.

@Witiko Witiko added lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation quality of life Related to quality-of-life improvements to the interface labels Feb 1, 2023
@Witiko Witiko modified the milestones: 3.0.0, 2.21.0 Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation quality of life Related to quality-of-life improvements to the interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant