quarto-dev / quarto-dev/quarto

Unable to add spans in RStudio Visual Editor

Open
#776 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

visual-editor
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the escaping behavior in the RStudio Visual Editor and inspect the existing /^ shortcut handling for the div option. Done means a span option can insert span markup without unwanted escaping, while the Source Editor and rendered output show the intended text.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.