<!-- Thanks for reporting an issue! This issue tracker is for bugs and issues found within Mercury Parser API. Please fill in as much of the template below as you're able. Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Mercury-Parser API Version: the specified version in your `package.json` file Node Version: output of `node --version` If possible, please provide a stack trace and/or code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able. --> - **Platform**: AWS Lambda - **Mercury Parser API Version**: 0.0.1 - **Node Version**: v12.11.1 ## Expected Behavior API endpoint should allow contentType as text or markdown ## Current Behavior It seems the contentType argument is not present in the code, as the code only takes url and html from the request - https://github.com/postlight/mercury-parser-api/blob/b6a04af54b3d734e96aa72e487659c087ba09295/src/parse-html.js#L6 ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant. --> <!--- Screenshots are helpful when appropriate. --> 1. Hosted on AWS Lambda as per instructions, can provide link if needed. 2. I just tried to make a GET and POST calls, with the contentType set to text and that doesn't seem to work ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> <!--- For example, what website URL are you dealing with? --> <!--- What is the request you are sending? What type of response are you getting? --> <!--- What is missing from the response? --> <!--- If you have a feature request, provide a detailed description of the change or addition you are proposing --> ## Possible Solution Code should be updated to accept opts as per Mercury parse - https://github.com/postlight/mercury-parser/blob/b0e708aac6a4e7e10986448a132d60df57c45b00/src/mercury.js#L13 <!--- Not obligatory, but suggest a fix/reason for the bug, -->
Activity
[-]Does this support contentType?[/-][+]Does not seem to support contentType[/+]