Skip to content

Citations erroneously escaped by Markdown canonicalization #13194

Open

Description

@salim-b

RStudio's Markdown canonicalization erroneously escapes certain citations. Apparently another instance of a recurring issue.

System details

RStudio Edition : Desktop
RStudio Version : 2023.03.1 Build 446
OS Version      : Ubuntu 22.04
R Version       : 4.3.0

Steps to reproduce the problem

  1. Clone the example project.
  2. Open the example.Rproj project in RStudio and open doc.qmd in the visual editor and save. Certain square brackets holding page numbers will erroneously get escaped. The unescaped file renders fine.

Describe the behavior you expected

No escaping of the citations.

  • 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 Jun 1, 2023
  2. ronblum commented on Jun 16, 2023

    @ronblum
    Contributor

    I can reproduce this in RStudio Desktop 2023.06.0+421 on MacOS 13.4. It looks like every other set of brackets is escaped, e.g. using the example project,

    @Schiller.2003 [p. 39], @Mittendorf.2007 [p. 207], @Schiller.2016 [p. 443] and @Cortes.2019 [p. 674].
    

    becomes

    @Schiller.2003 \[p. 39\], @Mittendorf.2007 [p. 207], @Schiller.2016 \[p. 443\] and @Cortes.2019 [p. 674].
    
  3. added
    visual markdown
    and removed
    new
    on Jun 16, 2023
  4. github-actions commented on Dec 14, 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 Dec 14, 2023
  6. salim-b commented on Dec 14, 2023

    @salim-b
    ContributorAuthor

    Issue is still present in latest RStudio Desktop 2023.09.1 Build 494.

    I would appreciate if you could disable this annoying stale-bot since ...

  7. removed
    stale
    on Dec 15, 2023
  8. github-actions commented on Jun 12, 2024

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

  9. added
    stale
    on Jun 12, 2024
  10. salim-b commented on Jun 12, 2024

    @salim-b
    ContributorAuthor

    Issue is still present in latest RStudio Desktop 2024.04.2 Build 764.

  11. removed
    stale
    on Jun 13, 2024
  12. github-actions commented on Dec 13, 2024

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

  13. added
    stale
    on Dec 13, 2024
  14. salim-b commented on Dec 13, 2024

    @salim-b
    ContributorAuthor

    Issue is still present in latest RStudio Desktop 2024.09.1+394

  15. removed
    stale
    on Dec 14, 2024
  16. gtritchie commented on Jan 23, 2025

    @gtritchie
    Member

    Repro Notes

    Still reproduces in 2024.12.0 and latest build of 2024.12.1.

  17. added this to the Backlog milestone on Jan 23, 2025
  18. michalovadek commented on Feb 26, 2025

    @michalovadek

    still an issue: #15037 (comment)

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

    bugvisual markdown

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions