How to prevent conversion of apostrophe to quotation mark?

0

Issue

When I knit the following code to HTML,

---
title: "Test"
author: "Test"
date: "1/8/2022"
output: html_document
---

'

The U+0027 apostrophe (‘) turns into a U+2019 right single quotation mark (’).

How can I prevent this behavior?

I am using RStudio 2021.09.0 Build 351 and R version 4.1.1.

Solution

You can use \

---
title: "Test"
author: "Test"
date: "1/8/2022"
output: html_document
---

\'

Answered By – TarJae

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More