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

centered output with page margins and fix paragraph wrapping #2

Closed
hedyhli opened this issue Sep 2, 2021 · 1 comment
Closed

centered output with page margins and fix paragraph wrapping #2

hedyhli opened this issue Sep 2, 2021 · 1 comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@hedyhli
Copy link
Owner

hedyhli commented Sep 2, 2021

two things

  1. paragraph wrapping: page paragraphs aren't wrapped properly by ansiwrap. Take any gemlog post for example, the paragraphs aren't wrapped evenly. some fills the entire width of the screen and some doesn't. We might need a different wrapping library for this
  2. page centering and maring: have a config option like maxWidth that takes an integer value of maximum screen width to fill when rendering a page. And then it will have the content centered with empty spaces on either sides like in amfora, bombadillo etc.
|         # title title        |
|           content            |
|           content            |
|           content            |
|           content            |
|           content            |
|                              |
@hedyhli hedyhli added enhancement New feature or request good first issue Good for newcomers bug Something isn't working labels Sep 2, 2021
@hedyhli
Copy link
Owner Author

hedyhli commented Oct 3, 2021

fixed, I'm yet to document the usage in README after testing it though

@hedyhli hedyhli closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant