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

Block Editor paste from Markdown does not include code language #125

Closed
alexsanford opened this issue Mar 13, 2020 · 0 comments · Fixed by #215
Closed

Block Editor paste from Markdown does not include code language #125

alexsanford opened this issue Mar 13, 2020 · 0 comments · Fixed by #215
Labels
[Status] Accepted [Status] Queued In the queue of issues to work on next. [Type] Bug

Comments

@alexsanford
Copy link
Contributor

To reproduce:

Create a new post using the Block Editor.

Paste the following text into the Block Editor:

### Some markdown

```python
call_function()

if some_condition:
    do_something()
```

Notice that the Python code has been converted into a SyntaxHighlighter Code block, but its language has not been set to python.

See the original report here, but note that it doesn't not appear to depend on Jetpack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Accepted [Status] Queued In the queue of issues to work on next. [Type] Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant