adapting to changes in markdown's behaviour