Summernote insert single line break instead of paragraph on pressing enter

I’ve seen a variety of discussions about this and none of them quite worked for me, so here is my version – working on the current (0.8.9) version.

//your options
}).on("summernote.enter", function(we, e) {
$(this).summernote("pasteHTML", "<br><br>");

We intercept the enter key, insert 2 breaks (required for new line) and prevent it from continuing to the insertPara function.