mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +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
|
||
|
];
|