I am typing some text in French using both R Markdown and Quarto documents. Both have the same behavior.
I typed the following in the Source mode of RStudio:
Note that the two lines are identical except for the apostrophe (the second one is the appropriate for text in French). When I switch to the visual mode, both lines are the same and I lost the appropriate French apostrophe.
Just curious, how do you insert the French apostrophe with you keyboard ?
I am French too, and never payed much attention to that.
What do you get in your rendered document ? Visual editor is for Markdown sources, and it will auto correct to markdown syntax. It is possible the apostrophe will render ok, especially in a document with lang: fr
Anyway, this would be an issue with RStudio IDE and visual editor and not directly R Markdown. I am moving the post in the right place.
The French apostrophe can be directly inserted on macOS by typing option-shift-è on a CSA French-Canada keyboard or option-shift-4 on a French keyboard.
I am also coming to the conclusion that RStudio IDE rather than R Markdown has an issue.
Here are the results after rendering the following simple document, both in R Markdown and Quarto:
## Test avec l'apostrophe
Voici comment est rendu les apostrophes:
- En tapant l'apostrophe droite
- En tapant l’apostrophe courbe.
results are all the same (rendering R Markdown and Quarto, to HTML and PDF: