user8248672
user8248672

Reputation:

Is there a way to indent the first line of a paragraph in a R Markdown file

I have a Rmd file hosted by blogdown I want to indent the first line of each paragraph, and have tried various things like indent:True inside the header, etc.

None of them seem to work and was wondering if anyone knew of a solution?

Thanks,

Upvotes: 1

Views: 926

Answers (1)

RLesur
RLesur

Reputation: 5910

I assume that you have read this appendix of the blogdown documentation about CSS. If not, please read it first.

Using CSS, you can use the text-indent property.
For instance, you can add this CSS rule:

p {
  text-indent: 2rem;
}

It indents the first line of each paragraph.

Upvotes: 4

Related Questions