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

Support centering content with auto margins #164

Merged
merged 22 commits into from
Feb 12, 2024
Merged

Support centering content with auto margins #164

merged 22 commits into from
Feb 12, 2024

Conversation

jaspervdj
Copy link
Owner

@jaspervdj jaspervdj commented Feb 10, 2024

See #38.

Configuration is done through the existing margins setting.

To vertically center content, use top: auto. To horizontally center content,
use both left: auto and right: auto. For example:

---
title: Centered presentation
author: John Doe
patat:
    margins:
        left: auto
        right: auto
        top: auto
...

Hello world

Setting wrap: true is recommended when vertically centering content if there
are any lines that are too wide for the terminal.

@jaspervdj jaspervdj merged commit 1032678 into main Feb 12, 2024
11 checks passed
@jaspervdj jaspervdj deleted the center branch February 12, 2024 15:43
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