Fixed code snippets being added as single line
Fixed code snippets being added as single line

TinyMCE was adding attributes to <br> elements within code blocks which
would then not be converted to newlines by our code regex match.
This changes the conversion to use dom querying instead.

Fixes #3507

BookStackApp/BookStack,BookStackApp/BookStack,BookStackApp/BookStack