fixing bugs related to the new markdown helper