[wp-trac] [WordPress Trac] #30727: Right Arrow ">" At Beginning of Line (For Markdown Quote) is Replaced when Switching Editors

WordPress Trac noreply at wordpress.org
Tue Dec 16 19:25:50 UTC 2014


#30727: Right Arrow ">" At Beginning of Line (For Markdown Quote) is Replaced when
Switching Editors
--------------------------+----------------------
 Reporter:  Kelderic      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:
 Severity:  minor         |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by azaozz):

 * status:  reopened => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 > This doesn't really have anything to do with Jetpack. The problem is
 that the editor is escaping the arrow because it thinks it's HTML.

 In both the editor and the saved post_content the "context" is HTML.
 Having non-encoded HTML special chars is invalid there.

 > It's a problem because it's changing what is saved. While the visually
 it appears the same on the front end, it appears as more code in the text
 editor which can be unsettling to non coders. Plus anything that is using
 the arrow specifically as a character breaks. It shouldn't be getting
 changed in the first place.

 When using the Text editor you can save invalid HTML. That editor is
 targeted at users who prefer to type/edit HTML by hand. On the other hand
 the Visual editor is for users who don't want to code HTML by hand. It is
 not acceptable to produce invalid HTML from there.

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


More information about the wp-trac mailing list