You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to escape a semicolon inside citation in visual mode #12952
bugstaleIssues which have been closed automatically due to inactivitiy.visual markdownFor bugs related to the new visual editor mode added for RMarkdown docs in the 1.4 release.
RStudio Edition : Desktop
RStudio Version : 2023.05.0-daily+177 Mountain Hydrangea (desktop)
OS Version : macOS Ventura 13.3
R Version : R version 4.2.3 (2023-03-15)
Steps to reproduce the problem
In source editor mode, write a parenthetical citation entry with preceding text containing an escaped semicolon (see jgm/pandoc-citeproc#271) such as
[Lorem Ipsum Dolor, LID\; @article2023].
Switch to visual mode and the escape vanishes.
Describe the problem in detail
RStudio actively removes the backslash in the visual mode editor. You can escape the semicolon in source mode, but it gets de-escaped every time I go back to visual mode. In canonical mode, you cannot even write it (as I would expect). Keeping the semicolon as-is will result in the expected citeproc or biblatex error.
EDIT: I have just noticed that the issue exists outside citations.
Describe the behavior you expected
You should be able to just escape the semicolon with a backslash.
@netique Thank for raising this! I can reproduce this, as well, in RStudio Desktop 2022.07.2+576 on MacOS 13.3. We'll review this as we continue improvements to RStudio and the visual editor.
bugstaleIssues which have been closed automatically due to inactivitiy.visual markdownFor bugs related to the new visual editor mode added for RMarkdown docs in the 1.4 release.
Activity
ronblum commentedon Apr 3, 2023
@netique Thank for raising this! I can reproduce this, as well, in RStudio Desktop 2022.07.2+576 on MacOS 13.3. We'll review this as we continue improvements to RStudio and the visual editor.
github-actions commentedon Oct 1, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
github-actions commentedon Oct 16, 2023
This issue has been automatically closed due to inactivity.