BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.02k stars 1.88k forks source link

Text align #5100

Closed mixeme closed 2 months ago

mixeme commented 3 months ago

Describe the feature you'd like

It would be better that a rendered page view has text align width by default.

Describe the benefits this would bring to existing BookStack users

Better page view as in real books and documents.

Can the goal of this request already be achieved via other means?

No, have not found such a setting in term of Markdown editor.

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

Under 3 months

Additional context

No response

ssddanbrown commented 3 months ago

Hi @mixeme,

It would be better that a rendered page view has text align width by default.

To be honest, I don't understand what that actually means at all. Could you explain the desire/request further?

mixeme commented 3 months ago

Hi @mixeme,

It would be better that a rendered page view has text align width by default.

To be honest, I don't understand what that actually means at all. Could you explain the desire/request further?

Yes. I have difficulties with terminology in this field. Let's adopt, for example, terminology used in this document. https://learn.microsoft.com/en-us/globalization/fonts-layout/text-justification

Currently, it is used text alignment "Align Left". I proposed to use "Justify" option by default for page views.

ssddanbrown commented 3 months ago

Hi @mixeme,

For that you could add the following to the "Custom HTML Head Content" customization in your BookStack settings:

<style>
  .page-content { text-align: justify; }
</style>
mixeme commented 3 months ago

Hi @mixeme,

For that you could add the following to the "Custom HTML Head Content" customization in your BookStack settings:

<style>
  .page-content { text-align: justify; }
</style>

Could you explain with more details? Where does this code should be inserted?

ssddanbrown commented 3 months ago

@mixeme I'm referencing the customization setting shown here (this particular setting is at the bottom of the "Customization" setting page):

image

mixeme commented 2 months ago

Thank you! It helped me. However, I think such a common modification should be at least added to the documentation, if you don't want to switch this by default (as is in real books that inspired BookStack).

ssddanbrown commented 2 months ago

@mixeme Good to hear that worked! I'll therefore close this off.

However, I think such a common modification should be at least added to the documentation, if you don't want to switch this by default (as is in real books that inspired BookStack).

I can't remember getting this request before in the 8.5 years of having publicly shared BookStack, so I don't think it's anywhere near common enough to justify being in the documentation.