Yashasv-Prajapati / Docify

5 stars 2 forks source link

feat(api): coverage html to markdown #69

Closed Karanraj06 closed 4 months ago

Karanraj06 commented 4 months ago

This PR adds a post endpoint that converts an HTML string to markdown. Takes the first h1 and the first table elements and converts them to md.

Sample output

Coverage report: 55%

Module Statements Missing Excluded Coverage
vehicle_info.py 18 5 0 72%
vehicle_info_test.py 29 16 0 45%
vi.py 18 5 0 72%
vi_test.py 29 16 0 45%
Total 94 42 0 55%

Packages added

linear[bot] commented 4 months ago
CS3-81 Append code coverage report into the Markdown

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.