wpcom_markdown_transform_pre, $text, $args

wpcom_markdown_transform_pre, $text, $args

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('wpcom_markdown_transform_pre, $text, $args') is found 1 times:

  • /modules/markdown/easy-markdown.php line 681
    		 *
    		 * @param string $text Content to be run through Markdown
    		 * @param array $args Array of Markdown options.
    		 */
    		$text = apply_filters( 'wpcom_markdown_transform_pre', $text, $args ) ?? '';
    		// ensure our paragraphs are separated.
    		$text = str_replace( array( '</p><p>', "</p>\n<p>" ), "</p>\n\n<p>", $text );
    		// visual editor likes to add <p>s. Buh-bye.
    		$text = $this->get_parser()->unp( $text );
    		// sometimes we get an encoded > at start of line, breaking blockquotes.
    		$text = preg_replace( '/^&gt;/m', '>', $text );