feat: remove markdown.NewLine
parent
ba6b3d599b
commit
1b9ac8c359
2
go.mod
2
go.mod
|
@ -10,7 +10,7 @@ require (
|
||||||
github.com/google/go-cmp v0.5.5 // indirect
|
github.com/google/go-cmp v0.5.5 // indirect
|
||||||
github.com/haunt98/clock v0.2.0
|
github.com/haunt98/clock v0.2.0
|
||||||
github.com/haunt98/color v0.2.0
|
github.com/haunt98/color v0.2.0
|
||||||
github.com/haunt98/markdown-go v0.1.0
|
github.com/haunt98/markdown-go v0.2.0
|
||||||
github.com/kevinburke/ssh_config v1.1.0 // indirect
|
github.com/kevinburke/ssh_config v1.1.0 // indirect
|
||||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e
|
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e
|
||||||
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -42,8 +42,8 @@ github.com/haunt98/clock v0.2.0 h1:zk7Q1NbI00/ZxK6Hd8KEYo0Fto/QRPlF9h2YfgUndnM=
|
||||||
github.com/haunt98/clock v0.2.0/go.mod h1:MXDjwKOzwD5hSlv6m/UjQx4YMSzGGOifk8TblwnZSVU=
|
github.com/haunt98/clock v0.2.0/go.mod h1:MXDjwKOzwD5hSlv6m/UjQx4YMSzGGOifk8TblwnZSVU=
|
||||||
github.com/haunt98/color v0.2.0 h1:SvzXU4cmQTrxQCJ5WaLyCF1lqhJilkfeF5bJgWatGBY=
|
github.com/haunt98/color v0.2.0 h1:SvzXU4cmQTrxQCJ5WaLyCF1lqhJilkfeF5bJgWatGBY=
|
||||||
github.com/haunt98/color v0.2.0/go.mod h1:lp75YVDcNuGgMemx8srNli5gwH8a6qEfFKgPl7e1q8s=
|
github.com/haunt98/color v0.2.0/go.mod h1:lp75YVDcNuGgMemx8srNli5gwH8a6qEfFKgPl7e1q8s=
|
||||||
github.com/haunt98/markdown-go v0.1.0 h1:Yg98g9F8NtLfZwFOlBtJRu1VWhDbJbPC8LjLgD70WSc=
|
github.com/haunt98/markdown-go v0.2.0 h1:t/AHH/MUrr+PCXY3fCfn+Q1Vd2vcJYVZmNCb373bPj8=
|
||||||
github.com/haunt98/markdown-go v0.1.0/go.mod h1:E18hIq5n6hy+aQ+U6o+MuMJdZoq7/5n50FG+JsjuFIs=
|
github.com/haunt98/markdown-go v0.2.0/go.mod h1:E18hIq5n6hy+aQ+U6o+MuMJdZoq7/5n50FG+JsjuFIs=
|
||||||
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
|
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
|
||||||
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
|
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
|
||||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
|
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
|
||||||
|
|
|
@ -81,7 +81,7 @@ func GenerateMarkdown(commits []convention.Commit, scopes map[string]struct{}, v
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseMarkdown(data string) []markdown.Node {
|
func ParseMarkdown(data string) []markdown.Node {
|
||||||
lines := strings.Split(data, string(markdown.NewlineToken))
|
lines := strings.Split(data, "\n")
|
||||||
nodes := markdown.Parse(lines)
|
nodes := markdown.Parse(lines)
|
||||||
|
|
||||||
// Remove title
|
// Remove title
|
||||||
|
|
Loading…
Reference in New Issue