deanblackborough/php-quill-renderer

Paragraph after two headers, opening p inbetween headers

Closed this issue · 1 comments

With the following delta

{"ops":[{"insert":"Primary Header"},{"attributes":{"header":1},"insert":"\n"},{"insert":"\nSecondary header"},{"attributes":{"header":2},"insert":"\n"},{"insert":"\nA paragraph.\n"}]}

The HTML is incorrect, the opening p tag is being placed between the two headers.

Need a failing test and then the fix to solve the bug!