From: Arlo Breault Date: Fri, 20 Apr 2018 00:00:57 +0000 (-0400) Subject: Cleanup the element matches in doBlockLevels a bit X-Git-Tag: 1.34.0-rc.0~5559^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=1f907d500a257a8af6b7d67072843a1ab4d3becf;p=lhc%2Fweb%2Fwiklou.git Cleanup the element matches in doBlockLevels a bit The MARKER_PREFIX is removed since `unstripGeneral()` happens before we get here. Change-Id: Ic668784fd8bbaa8395cd5449c83a993abda141eb --- diff --git a/includes/parser/BlockLevelPass.php b/includes/parser/BlockLevelPass.php index 1173dd2086..c3669032d3 100644 --- a/includes/parser/BlockLevelPass.php +++ b/includes/parser/BlockLevelPass.php @@ -291,19 +291,34 @@ class BlockLevelPass { if ( 0 == $prefixLength ) { # No prefix (not in list)--go to paragraph mode # @todo consider using a stack for nestable elements like span, table and div + + // P-wrapping and indent-pre are suppressed inside, not outside + $blockElems = 'table|h1|h2|h3|h4|h5|h6|pre|p|ul|ol|dl|li'; + // P-wrapping and indent-pre are suppressed outside, not inside + $antiBlockElems = 'td|th'; + $openMatch = preg_match( - '/(?: tag, or if