How to end heading 3 in rmarkdown beamer madrid presentation?

When using the theme of Tower Madrid (and some others), heading 3 is displayed as a field covering the entire section, but when marking down, the heading is indicated only at the beginning. How can I indicate the end of a section?

In the example below, I want the second sentence to be inside the field and the third to be on a white background.

Example:

--- title: "Example" output: beamer_presentation: colortheme: beaver theme: Madrid --- ## Slide with Box Hello, I'm not in the box ### This is a box And this text is in the box! I don't want to be in the box, but I am. 

Exit

enter image description here

+7
r knitr latex r-markdown beamer
source share
1 answer

This works for me:

 ## Slide with block 2 Hello, I'm not in the block. \begin{block}{This is a block} And this text is in the block! \end{block} Hi, I'm not in the block either! 
+6
source share

All Articles