switch to custom markdown mode
strip trailing whitespace