refactory-id / bootstrap-markdown

Bootstrap plugin for markdown editing
Apache License 2.0
1.99k stars 371 forks source link

Header button continuously adds newlines #292

Open cmrd-senya opened 7 years ago

cmrd-senya commented 7 years ago

When I consequently push H button it adds and removes ### on the same line (toggles the heading) but it always adds a newline after the header. On removing of ### it doesn't delete the newline, so pressing the H button continuosly with the same line makes the text area filled with newlines. Expected behaviour: remove the extra newline if there is one after the header line when H is pressed for heading removal.