Matthew Knies and Mitch Marner each had a goal and an assist as the Toronto Maple Leafs survived a 4-3 victory over the Edmonton Oilers.