patat/lib/Patat/PrettyPrint
Jasper Van der Jeugt 103267895a
Support centering content with auto margins (#164)
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:

```markdown
---
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.
2024-02-12 16:43:17 +01:00
..
Internal.hs Support centering content with auto margins (#164) 2024-02-12 16:43:17 +01:00
Matrix.hs Fix wcwidth issue in transition text wrapping 2023-10-18 15:11:39 +02:00