stackinator
stackinator

Reputation: 5819

R Markdown horizontal rule only works under headings, nowhere else, why?

In R Markdown I can type the following code, knitr it to HTML, and a horizontal rule is created underneath the heading, but not underneath the text. If I paste the same code into this StackOverflow pane I'm typing into right now there are horizontal rules under both the heading and the text. Why does R Markdown leave out the second horizontal rule?

---
title: "Untitled"
output:
  html_document: default
---

# Heading
***

Text
***

Upvotes: 1

Views: 3072

Answers (1)

Martin Schmelzer
Martin Schmelzer

Reputation: 23889

Just make an extra line break

---
title: "Untitled"
output:
  html_document: default
---

# Heading
***

Text

***

Upvotes: 4

Related Questions