[wp-trac] [WordPress Trac] #48915: Gutenberg Paragraph Block, Drop Cap missing sanitize rule for initial hard return line <br>

WordPress Trac noreply at wordpress.org
Fri Jan 10 21:05:22 UTC 2020


#48915: Gutenberg Paragraph Block, Drop Cap missing sanitize rule for initial hard
return line <br>
--------------------------+------------------------------
 Reporter:  Giorgio25b    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  5.3
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui
--------------------------+------------------------------

Comment (by Giorgio25b):

 Then we either have to make clear that the Drop Cap only works for a real
 first-letter or a markup check or warning should be implemented to make
 sure that Drop Cap is applicable or not depending on the html tags.
 Something like if <p>`^[A-Za-z0-9 ]*` you can Drop Cap, else don't.

 I mean this is a rough approach, but some sort of control should be in
 place to avoid the issue

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48915#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list