Editing wiki post shows incorrect HTML diff

(James Milligan) #1

See image below. This is editing a post to add the two lines near the bottom (which are diffed correctly). The incorrect diffs are the image (which hasn’t been altered, and refers to the same file in both), and the first paragraph. Looks like some sort of encoding issue (the quote mark in you'd appears to cause the highlight).

(Régis Hanol) #2

What’s in the markdown diff?

(James Milligan) #3

Ah, that’s interesting. The diff is spot on with Markdown:

(Régis Hanol) #4

Yeah diffing HTML is harder than diffing raw text.

(James Milligan) #5

I agree, but would it make more sense to act on the results of the diff between the markdown copies, rather than having (essentially) two distinct diffs? Could the diff be done on markdown, and then converted for display ‘in’ HTML?

(Jeff Atwood) #6