Fix a couple of md parsing bugs