Page MenuHomePhabricator

italics.patch

Authored By
bzimport
Nov 21 2014, 11:12 PM
Size
736 B
Referenced Files
None
Subscribers
None

italics.patch

Index: includes/parser/Parser.php
===================================================================
--- includes/parser/Parser.php (revision 78625)
+++ includes/parser/Parser.php (working copy)
@@ -3840,9 +3840,9 @@
# link text with suffix
$safeHeadline = $this->replaceLinkHoldersText( $safeHeadline );
- # Strip out HTML (other than plain <sup> and <sub>: bug 8393)
+ # Strip out HTML (other than plain <sup> and <sub>: bug 8393 and italics: bug 26375)
$tocline = preg_replace(
- array( '#<(?!/?(sup|sub)).*?'.'>#', '#<(/?(sup|sub)).*?'.'>#' ),
+ array( '#<(?!/?(sup|sub|i|em)).*?'.'>#', '#<(/?(sup|sub|i|em)).*?'.'>#' ),
array( '', '<$1>' ),
$safeHeadline
);

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6518
Default Alt Text
italics.patch (736 B)

Event Timeline