Home > front end >  How to prevent conversion of apostrophe to quotation mark?
How to prevent conversion of apostrophe to quotation mark?

Time:01-09

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.

CodePudding user response:

You can use \

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

\'

  •  Tags:  
  • Related