changed markdown upload behavior