@wordpress/blocks
Version:
Block API for WordPress.
16 lines (15 loc) • 330 B
JavaScript
// packages/blocks/src/api/raw-handling/br-remover.js
import { getSibling } from "./utils";
function brRemover(node) {
if (node.nodeName !== "BR") {
return;
}
if (getSibling(node, "next")) {
return;
}
node.parentNode.removeChild(node);
}
export {
brRemover as default
};
//# sourceMappingURL=br-remover.js.map