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

Code formatted with three backticks gets replaced by inline code #187

Open
DonaldDuck313 opened this issue Jul 3, 2020 · 1 comment
Open

Comments

@DonaldDuck313
Copy link

DonaldDuck313 commented Jul 3, 2020

If a post has a code block surrounded by three backticks (```), the magic editor will remove all backticks except one and indent with 4 spaces. For example

```
code here
```

will be edited to something like

`
    code here
`

I get why this was implemented before Stack Overflow supported code blocks with ```, but now that they supported, I think this feature should be removed. Also if you really want to keep this, you should at least make it remove all the backticks.

Demo: Try applying the magic editor to this formatting sandbox post.

@makyen
Copy link
Contributor

makyen commented Jul 3, 2020

This is effectively a duplicate of #181. However, its statement of the problem clearer, due to not intermixing two issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants