Skip to content

Unable to add spans in RStudio Visual Editor #776

@jonbry

Description

@jonbry

I'm not sure if this is the right place as it is may be a feature request more than a bug, but if I try to add a span using Visual Editor, it escapes the brackets, which makes it show up as text in the output. There is a div shortcut option when using ^/ but I didn't see one for spans as well.

If I enter the following in Visual Editor:

[tester]{style="font-size: 0.8em"}
\[tester\]{style="font-size: 0.8em"}

The results in Source Editor:

\[tester\]{style="font-size: 0.8em"}
\\\[tester\\\]{style="font-size: 0.8em"}

Is there another way of doing this so I don't have to switch back and forth between editors? I understand why this may be the expected behavior, but it would be nice to have a span option under the /^ shortcut to avoid going back and forth between editors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions