extract common Redcarpet initialize process