79763955

Date: 2025-09-13 20:53:54
Score: 0.5
Natty:
Report link

Further complimenting the other two answers, you can even put the css in a separate file and include a css argument in your yaml !!

in your quarto file:

---
title: "How to justify text in Quarto"
format: html
engine: knitr
css: main.css
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

Quarto is based on Pandoc and uses its variation of markdown as its underlying document syntax. Pandoc markdown is an extended and slightly revised version of John Gruber's Markdown syntax and Markdown is a plain text format.

Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read:

Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read:

then in your main.css (or whatever you want to call it)

p {
  text-align: justify
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kyle