Iffy about this, it basically checks two siblings up to make sure it's a `<p>` and replaces the `previousSibling` with a `<hr>` since they are both empty at this point. It mimics the behavior Medium has which to me seems not so intuitive.