5

How can I see the source code on a suggested edit review page?

I want a similar thing as in this link for this suggested edit.

0

1 Answer 1

3

Well, you can click the 'markdown' link to see what has been edited:

enter image description here

You'll need to combine that (manually) with the source code of the revision the edit was suggested to, if you want the complete source code of the suggested edit. An approved or improved edit will show up in the revision list; this 'trick' is only necessary for rejected edits.

I tried to find a way to obtain the source with the API, but

  1. that returns the rendered body
  2. the suggested edit IDs used by the API are different from the ones you see in the URL.

Another option would be to wait until next Sunday and fetch the Text from the SuggestedEdits table in SEDE. However, it's complicated (impossible?) to correctly fetch the whitespace.

Not the answer you're looking for? Browse other questions tagged .