# genesis-blocks/trunk/src/utils/helpers/remove-paragraph.js

Genesis Blocks, version trunk. 4 lines.

- Page: https://pluginprobe.com/plugins/genesis-blocks/trunk/code/src/utils/helpers/remove-paragraph.js
- Raw: https://pluginprobe.com/plugins/genesis-blocks/trunk/raw/src/utils/helpers/remove-paragraph.js
- Modified: 2025-03-19T16:30:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/genesis-blocks/trunk/code/src/utils/helpers/remove-paragraph.js#L10-L20`.

```javascript
export default function removeParagraph(component) {
	return component?.type === 'p' ? component?.props?.children : component;
}

```
