When using the R papaja package template, I figured how to justify (and further format the text in the sections following the YAML header by adding LaTEX packages to the YAML header. E.g:
header-includes:
- \usepackage[document]{ragged2e}
However this will not work for the text in the actual header which contains the text of the abstract of the article. Is there a way to justify the text in the actual YAML header?