fix some problems,mainly on markdown parse