Hmm, can you post the R Markdown source of that test document? Here’s how to format it so it doesn’t get garbled here:
FAQ: How to Format R Markdown Source