the Code Syntax Block WordPress plugin hasn’t been updated in a while and isn’t fully compatible with WordPress 6.5 ..adding the function below to the end of the plugin’s index.php file seems to fix it..

// replace br tags with new line characters (to fix PrismJS styled code blocks)
function replace_new_line_character( $block_content ) {
    $block_content = str_replace( '<br>', "\n", $block_content );
    return $block_content;
}
add_filter( 'render_block_core/code', 'replace_new_line_character' );
View Post