@wordpress/block-library
Version:
Block library for the WordPress editor.
19 lines • 358 B
JavaScript
/**
* WordPress dependencies
*/
import { createBlock } from '@wordpress/blocks';
const transforms = {
from: [{
type: 'enter',
regExp: /^-{3,}$/,
transform: () => createBlock('core/separator')
}, {
type: 'raw',
selector: 'hr',
schema: {
hr: {}
}
}]
};
export default transforms;
//# sourceMappingURL=transforms.js.map