Skip to content

Allow to escape a semicolon inside citation in visual mode #12952

Closed

Description

@netique

System details

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.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on Apr 1, 2023
  2. ronblum commented on Apr 3, 2023

    @ronblum
    Contributor

    @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.

  3. added
    visual markdown
    and removed
    new
    on Apr 3, 2023
  4. github-actions commented on Oct 1, 2023

    @github-actions

    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.

  5. added
    stale
    on Oct 1, 2023
  6. github-actions commented on Oct 16, 2023

    @github-actions

    This issue has been automatically closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstalevisual markdown

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions