Skip to content

Canonical R markdown issue with back ticks and itatics #13096

Open

Description

@olivroy

System details

RStudio Edition :  Desktop
RStudio Version :  2023.03+386
OS Version      :  Windows 10
R Version       :  4.2.3

.Rproj options: MarkdownCanonical: Yes

Steps to reproduce the problem

Set in project / global options Write Canonical Visual mode markdown in source mode. (set all options to avoid having diffs when switching between visual and source mode
Create a new .Rmd file.
Add a line with italics and bold, for example, and back quotes after the italic word (spaced)
Save the document.

---
title: "test"
output: html_document
date: "2023-05-05"
---

**Hello I am *italic* `code` text**

Describe the problem in detail

When saving the document,
the space between the * and the ` is removed.

After saving:

---
title: "test"
output: html_document
date: "2023-05-05"
---

**Hello I am *italic*`code` text**

Describe the behavior you expected

I would expect to keep the space between the * and the ` after saving in source mode. And the visual editor and source editor behaviour to be the same.

It doesn't happen, when I save it in the visual mode. However, when I toggle back to source mode, the issue persists.

  • 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 May 5, 2023
  2. changed the title [-]Canonical R markdown issue with reformatting[/-] [+]Canonical R markdown issue with back ticks and itatics[/+] on May 5, 2023
  3. ronblum commented on May 8, 2023

    @ronblum
    Contributor

    @olivroy Thank you for raising this! I can also reproduce this in RStudio Desktop 2023.05.0-daily+331 on MacOS 13.4. We'll review this as we continue development of RStudio and the visual editor.

  4. added
    visual markdown
    and removed
    new
    on May 8, 2023
  5. github-actions commented on Nov 5, 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.

  6. added
    stale
    on Nov 5, 2023
  7. olivroy commented on Nov 10, 2023

    @olivroy
    ContributorAuthor

    I think this is worth looking at. (Still an issue in 2023.12.0+274 on macOS + Windows. Related to #13194

  8. removed
    stale
    on Nov 11, 2023
  9. github-actions commented on Jun 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.

  10. added
    stale
    on Jun 13, 2024
  11. olivroy commented on Jun 13, 2024

    @olivroy
    ContributorAuthor

    unstale! Some improvements could still be made to make sure the visual editor doesn't do anything unexpected to our documents to be able to use the visual editor in confidence in more situations!

  12. removed
    stale
    on Jun 14, 2024
  13. 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.

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

    @salim-b
    Contributor

    This bug is still present in RStudio 2024.09.1+394 and is only one of many issues with RStudio's Markdown canonicalization.

  16. removed
    stale
    on Dec 14, 2024
  17. added this to the Mariposa Orchid milestone on Jan 13, 2025
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

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions