Update editor markdown tests

closes #1299

- update tests to check for full strings with spaces now that this is no
  longer an issue
- reorganise duplicated test for images
Merge pull request #3859 from ErisDS/issue-1299

Update editor markdown tests