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

bug(markdown) Adding code block around backticks doesn't work properly #186

Open
yellis opened this issue Jul 14, 2022 · 0 comments
Open
Labels
bug Something isn't working mode - markdown Affects the editor's markdown input mode
Milestone

Comments

@yellis
Copy link
Contributor

yellis commented Jul 14, 2022

To Reproduce

  1. MD mode, type in 4 backticks
  2. Highlight them, set codeblock
  3. results in 3 lines with 3 backticks
  4. This gets mangled when go to RT, turning into 2 empty code blocks. So this translation is a problem.
  5. Going back to MD, ends up with 2 lines of 3 backticks, and empty line, and 2 lines of 3 backticks again (translation of the RT from step 4).

The MSE post points out several way to apply the codeblock to make this work, most practically in this case:

````
```
````

Which translates fine round-trip.

Expected behavior
Making this into a code block will do so in such a way that it can round trip and render properly

Screenshots
demo

Desktop (please complete the following information):
Windows 11 Chrome 103

Additional context
https://meta.stackexchange.com/a/380356/51

@yellis yellis added bug Something isn't working mode - markdown Affects the editor's markdown input mode labels Jul 14, 2022
@yellis yellis moved this to Todo in Stacks-Editor Jul 14, 2022
@yellis yellis added this to the Beta 3 milestone Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mode - markdown Affects the editor's markdown input mode
Projects
Status: Todo
Development

No branches or pull requests

1 participant