Change input from string to object

This change allows a user to pass the extension as a property on the input object, for use in the contentParse function (ie they can check for 'markdown' and run markdown parsing, which should eventually be the default contentParse)