/** * Replaces double line-breaks with paragraph elements. * * A group of regex replaces used to identify text formatted with newlines and * replace double line-breaks with HTML paragraph tags. The remaining line- * breaks after conversion become `
` tags, unless br is set to 'false'. * * @param text The text which has to be formatted. * @param br Optional. If set, will convert all remaining line- * breaks after paragraphing. Default true. * * @example *```js * import { autop } from '@wordpress/autop'; * autop( 'my text' ); // "

my text

" * ``` * * @return Text which has been converted into paragraph tags. */ export declare function autop(text: string, br?: boolean): string; /** * Replaces `

` tags with two line breaks. "Opposite" of autop(). * * Replaces `

` tags with two line breaks except where the `

` has attributes. * Unifies whitespace. Indents `

  • `, `
    ` and `
    ` for better readability. * * @param html The content from the editor. * * @example * ```js * import { removep } from '@wordpress/autop'; * removep( '

    my text

    ' ); // "my text" * ``` * * @return The content with stripped paragraph tags. */ export declare function removep(html: string): string; //# sourceMappingURL=index.d.ts.map