Closed Karanraj06 closed 4 months ago
Assume you receive an HTML text paylod, inject this HTML text into a user's specific project. A possible way to do this is to add the HTML code after the MD file that contains the coverage report from the docker container for a specific project of the user.
This PR adds a post endpoint that converts an HTML string to markdown. Takes the first
h1
and the firsttable
elements and converts them to md.Sample output
Coverage report: 55%
Packages added
cheerio
(dom manipulation on the server)markdown-table
(convertsstring[][]
to markdown table)