Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6981
italics.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:12 PM
2014-11-21 23:12:08 (UTC+0)
Size
736 B
Referenced Files
None
Subscribers
None
italics.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6518
Default Alt Text
italics.patch (736 B)
Attached To
Mode
T28375: Italics should be passed to TOC
Attached
Detach File
Event Timeline
Log In to Comment