fixed markdown mode, added polymode