I've tried to separate my subtitles from plain text using two blank space.
The first part of my .Rmd document looks like this
---
title: 'Script de Limpieza: errores de digitalizacion y division de base madre'
author: "Leonardo Doig & Karen Lau"
date: "10/9/2020"
output:
html_document: default
word_document: default
pdf_document: default
---
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
some random words should be here
#### First subtitle
there are 2 blank spaces after the first subtitle
{r message=FALSE}
library(lubridate)
#### Second Subtitle
plain text (after the second subtitle there are 2 blanks spaces too)
but the final output it's always like this:
plain text
First subtitle there are 2 blank spaces after the first subtitle
library(lubridate)
Second Subtitle plain text (after the second subtitle there are 2 blanks spaces too)
It only happens when I Knit my .Rmd file to .pdf. When I Knit to .html all this mess with the subtitles and plain text seems to be okay.