auto markdown mode