Skip to content

Commit 160ff99

Browse files
committed
Strip Markdown
1 parent 10ebb41 commit 160ff99

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ require (
1717
github.com/google/go-github/v45 v45.0.0
1818
github.com/kr/text v0.2.0 // indirect
1919
github.com/mattn/go-runewidth v0.0.13 // indirect
20+
github.com/writeas/go-strip-markdown v2.0.1+incompatible // indirect
2021
golang.org/x/oauth2 v0.0.0-20220524215830-622c5d57e401
2122
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 // indirect
2223
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljT
258258
github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M=
259259
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
260260
github.com/willf/bitset v1.1.10/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
261+
github.com/writeas/go-strip-markdown v2.0.1+incompatible h1:IIqxTM5Jr7RzhigcL6FkrCNfXkvbR+Nbu1ls48pXYcw=
262+
github.com/writeas/go-strip-markdown v2.0.1+incompatible/go.mod h1:Rsyu10ZhbEK9pXdk8V6MVnZmTzRG0alMNLMwa0J01fE=
261263
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
262264
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
263265
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

pkg/data/issue.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77

88
"github.com/google/go-github/v45/github"
9+
stripmd "github.com/writeas/go-strip-markdown"
910
"golang.org/x/oauth2"
1011
)
1112

@@ -110,7 +111,7 @@ func getQuestions(repos []string) ([]Repo, error) {
110111
ent.Author = *issue.GetUser().Login
111112
}
112113
if issue.Body != nil {
113-
ent.Body = *issue.Body
114+
ent.Body = stripmd.Strip(*issue.Body)
114115
}
115116
repo.Issues = append(repo.Issues, ent)
116117
}

0 commit comments

Comments
 (0)