web/wp-content/mu-plugins/wp-mu-plugins/lf-pre-publish/src/index.js
/**
 * Count H1 headings in block content.
 *
 * @return {Object} Result
 */
Count H1 headings in block content.
@return {Object} Result
Count H1 headings in block content . @return { Object } Result
function countH1() {
	const blocks = select( 'core/block-editor' ).getBlocks();
	if ( ! blocks.some( checkH1 ) ) {
		return null;
	}
	const countH1Result = (
		<Result
			icon={ iconError }
			title="H1 Headers"
			message="You shouldn't have H1 header tags in the body content. Consider switching to H2."
		/>
	);
	return countH1Result;
}
function countH1 ( ) { const blocks = select ( 'core/block-editor' ) . getBlocks ( ) ; if ( ! blocks . some ( checkH1 ) ) { return null ; } const countH1Result = ( < Result icon = { iconError } title = "H1 Headers" message = "You shouldn't have H1 header tags in the body content. Consider switching to H2." / > ) ; return countH1Result ; }
Count H1 headings in block content.
Count H1 headings in block content .