fixes handling of redcarpet, should work on Pages