strip markdown before parsing