Skip to content

Commit ef3f28e

Browse files
add badge to README and added codecov
1 parent 9e092cd commit ef3f28e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@ jobs:
3434
run: go build -v .
3535

3636
- name: Test
37-
run: go test -v .
37+
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic .
38+
39+
- name: Upload Coverage report to CodeCov
40+
uses: codecov/[email protected]
41+
with:
42+
token: ${{secrets.CODECOV_TOKEN}}
43+
file: ./coverage.txt

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# html-to-markdown
22

3+
[![Go Report Card](https://goreportcard.com/badge/github.com/JohannesKaufmann/html-to-markdown)](https://goreportcard.com/report/github.com/JohannesKaufmann/html-to-markdown)
4+
[![codecov](https://codecov.io/gh/JohannesKaufmann/html-to-markdown/branch/master/graph/badge.svg)](https://codecov.io/gh/JohannesKaufmann/html-to-markdown)
5+
![GitHub MIT License](https://img.shields.io/github/license/JohannesKaufmann/html-to-markdown)
6+
[![GoDoc](https://godoc.org/github.com/JohannesKaufmann/html-to-markdown?status.png)](http://godoc.org/github.com/JohannesKaufmann/html-to-markdown)
7+
38
![gopher stading on top of a machine that converts a box of html to blocks of markdown](/logo.png)
49

510
Convert HTML into Markdown with Go. It is using an [HTML Parser](https://github.com/PuerkitoBio/goquery) to avoid the use of `regexp` as much as possible. That should prevent some [weird cases](https://stackoverflow.com/a/1732454) and allows it to be used for cases where the input is totally unknown.

0 commit comments

Comments
 (0)