mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
13 lines
254 B
JavaScript
13 lines
254 B
JavaScript
|
export function removeBR(node, builder, {addMarkerable, nodeFinished}) {
|
||
|
if (node.nodeType !== 1 || node.tagName !== 'BR') {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
addMarkerable(builder.createMarker(' '));
|
||
|
nodeFinished();
|
||
|
}
|
||
|
|
||
|
export default [
|
||
|
removeBR
|
||
|
];
|