Thanks for this modification! This was exactly what I was looking for.
Additionally, I inserted the following right before returning from the function inline_to_shortcode_callback
in wp-latex.php to make it work for the inline $latex ...$
way by adding &b
(without value):
if ( preg_match( '/.+((?:&|&)b(?:&|&|\s|$)).*/i', $matches[2], $b_matches ) ) {
$r .= ' isblock=true';
$matches[2] = str_replace( $b_matches[1], '', $matches[2] );
}
Note that the ampersands above get messed up, it should be #038;
and amp;
, each time with an ampersand preceding them.