Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues using backticks to create inline code elements #4912

Closed
jasmussen opened this issue Feb 7, 2018 · 2 comments
Closed

Issues using backticks to create inline code elements #4912

jasmussen opened this issue Feb 7, 2018 · 2 comments
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended

Comments

@jasmussen
Copy link
Contributor

Authoring text comes with a nice little bit of syntactic sugar. As you type, you can wrap elements with backticks to convert them to code, on the fly.

There's an issue with a trailing backtick that gets added, though. Steps to reproduce:

  • Write some text. Place the caret before a word. Write a backtick.
  • Place the caret after the word. Write a backtick and note how the word is converted into a code element.
  • Move the caret with the arrow keys, notice how a trailing ` shows up.

backticks

A smaller issue that is perhaps related, you can't convert a word to code if you add the backticks from right to left:

backticksbackwards

@jasmussen jasmussen added [Type] Bug An existing feature does not function as intended [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Feb 7, 2018
@Soean
Copy link
Member

Soean commented Feb 7, 2018

Related #4642

@jasmussen
Copy link
Contributor Author

Ack, this is a duplicate then. Thank you Soean, I'll close this one and port the images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants