Needs work
Project:
Code Filter
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2016 at 22:37 UTC
Updated:
28 Mar 2016 at 16:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cameron tod commentedComment #4
drummThis patch handles
<em>This has an em HTML tag surrounding it</em>, which it seems is over-decoded.Comment #5
drummThe 0 byte patch was my fault. This should be better.
Comment #8
drummI see #4 is a completely separate issue, #2694791: <code><em>HTML in code</em></code> is not properly escaped with Prism.
Comment #9
cameron tod commentedThis was actually solved almost ten years ago, here: #38047: "?>" string prematurely stops syntax highlighting
But I'm not sure the approach in that issue is the one we want to take today.
Comment #10
cameron tod commentedI got most of the way there on fixing this. There are still some minor test fails, but they seem to be only on trailing carriage returns rather than anything fundamental.
I am uploading this patch for review but will try to sort the failures tonight if I can.
One thing to note is that Prism seems to do something weird with php tags too - even though the raw text output looked ok my end once prism processed it php tags would be missing in the display.
I have attached screenshots of how things look with this patch, with and without Prism.
I'm expecting to see a bunch of fails on this test.