fix some problems from switching markdown interpreter