question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editor add `<br>` in code block when user press enter

See original GitHub issue

Summary

Why Editor add <br> when user enter with code block?

Screenshots

This is mode WTSIWYG: image

This is mode Markdown: image

Actually: I wanna this ( no <br> in mode markdown ) : image

Is that config for this?

Version

Lastest

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
stephantaborcommented, Nov 3, 2020

@seonim-ryu

These extra <br>s are problematic for things i’m using the editor for. For example when they get added before a markdown table you’ll end up with output like

<br>
| Name |
| ---- |

which will render fine in your viewer, but if i take the output markdown and want to have it in a GitHub Readme, or run it through markedjs then the table won’t be recognized.

0reactions
stale[bot]commented, Dec 12, 2020

This issue will be closed due to inactivity. Thanks for your contribution!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do i add <br> automatically in textarea when a user press ...
Probably using javascript or php (because im developing my web app using laravel) ? Would i need wysiwyg editor for such simple task...
Read more >
Prevent new block when user press Enter #1387 - GitHub
I have to prevent when the users press Enter, and instead of create a new paragraph, it should just return a break line...
Read more >
Create A Wordpress Line Break (br) Shortcode - WPExplorer
How to add a line break in the WordPress visual editor. Learn how to create a line break shortcode and other quick tricks...
Read more >
Additional line breaks when pressing the ENTER key while ...
When you type any text and press ENTER in Notepad, it adds a <br/> tag. Resolution. In the SharePoint RTE, use 'SHIFT+ENTER' to...
Read more >
<br>: The Line Break element - HTML - MDN Web Docs - Mozilla
The HTML element produces a line break in text (carriage-return). ... In the following example we use <br> elements to create line breaks ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found