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

Multiline code block issue with new lines #397

Closed
MadsFrost opened this issue May 30, 2022 · 2 comments
Closed

Multiline code block issue with new lines #397

MadsFrost opened this issue May 30, 2022 · 2 comments

Comments

@MadsFrost
Copy link

MadsFrost commented May 30, 2022

Hi, thanks again for all the documentation and nice written code.

I was wondering if this is an intended convention with markdown or some sort of error in regards to code blocks? The code block does not correctly render:

 { 
  test: string;
  example: number;
 }

But instead renders it as JSON {
Screenshot 2022-05-30 at 09 16 04

Also whenever in code block and you edit it moves the cursor to the end of the editor? Any ideas?

@jaywcjlove
Copy link
Member

You can provide sample code that reproduces the problem.

https://codesandbox.io/embed/markdown-editor-for-react-izdd6?fontsize=14&hidenavigation=1&theme=dark

@MadsFrost

@jaywcjlove
Copy link
Member

image

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

No branches or pull requests

2 participants