-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Markdown Formatter #3962
Comments
Hi @EddyHaigh 👋 I see that you are willing to work on this, is that still the case? If so, we will be more than happy to help you along the way 😊 You probably have seen this, but we have some documentation about developing a formatter. Let us know if you run into any issues! |
@molant , yeah im still willing to work on this. I'm just trying to think of the best way to do this before I start. Initially, I was thinking a string builder style way but that could easily become complicated and hard to maintain. Then I took a look at the HTML formatter and thought about using the EJS templating engine to develop the Markdown. I know it might sound silly but it would be more maintainable and easier to read. However, I am way open to suggestions as I'm not a js/ts person. |
Have you looked at Tagged templates? It might be a good option for this scenario. |
I'll give it a look and try it out. Thanks for the suggestion! 😀 |
Is there any documentation on testing a new formatter other than the tests in the test folder? |
You could update the Let me know if you run into any issues! |
Yeah, changing the args on the debug launch of hint, to the following works. 'args': [
'-f',
'markdown',
'http://example.com'
] |
🚀 Feature request
Description
What do you want to be added?A markdown formatter.
Are you willing to work on this?Yes
What scenarios will this solve?
Why do you want/need this?This will solve issues where you want to display the report but can't display rich HTML formats such as in websites with particular Content Security Policies as well as environments such as Azure Pipelines where the pipeline summary page can only display markdown. Webhint ADO Extension Issue.
Example Markdown Report
The text was updated successfully, but these errors were encountered: