Skip to content

feat: add support for global --content-appearance default#735

Open
birjj wants to merge 1 commit intokovetskiy:masterfrom
tv2:feat/global-layout
Open

feat: add support for global --content-appearance default#735
birjj wants to merge 1 commit intokovetskiy:masterfrom
tv2:feat/global-layout

Conversation

@birjj
Copy link

@birjj birjj commented Mar 3, 2026

This implements a --content-appearance flag to the CLI, which can be used to globally set the <!-- Content-Appearance: ... --> value. Previously users would have to set the <!-- Content-Appearance: ... --> header in every single document that they wanted to not be full width. With this new flag they can set it globally.

Implemented to be backwards compatible, so it still defaults to full-width if neither the flag nor a header is set. Headers within documents take precedence over the flag value, so individual documents can still be customized; the flag just sets the new default.

Based on previous feedback in another PR I have chosen to throw an error if --content-appearance is set to anything other than fixed or full-width.

@birjj birjj changed the title feat: add support for global --content-appearance override feat: add support for global --content-appearance default Mar 3, 2026
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