Changing the way line breaks are handled


Is there a way I can set every single new line to use <br> tags and every double new lines to use <p> tags as the default behavior for treating new lines?


You could bind enter to a command that inserts a hard break, except when directly after a hard break, in which case it remove the hard break and splits textblocks instead.