Skip to content

Commit 49fb8aa

Browse files
authored
Merge pull request #2168 from xushiwei/q
cl test: domaintext-md
2 parents 608da4e + 023e6dc commit 49fb8aa

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

cl/_testgop/domaintext-md/go.mod

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module example
2+
3+
go 1.22
4+
5+
require github.com/xushiwei/markdown v0.1.0
6+
7+
require github.com/yuin/goldmark v1.7.8 // indirect

cl/_testgop/domaintext-md/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/xushiwei/markdown v0.1.0 h1:Vjw4MVcwSEJge9ObA/3C1lrmNYX60nJwuVKdLYrf0+o=
2+
github.com/xushiwei/markdown v0.1.0/go.mod h1:6hyvHMBrprwcCYXaw71W9WwBX1st9r+Rfsj+cKXW3EE=
3+
github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic=
4+
github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=

cl/_testgop/domaintext-md/in.gop

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import (
2+
"os"
3+
4+
"github.com/xushiwei/markdown"
5+
)
6+
7+
md := markdown`
8+
# Title
9+
10+
Hello world
11+
`
12+
13+
md.convert os.Stdout

cl/_testgop/domaintext-md/out.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package main
2+
3+
import (
4+
"github.com/xushiwei/markdown"
5+
"os"
6+
)
7+
8+
func main() {
9+
md := markdown.New(`
10+
# Title
11+
12+
Hello world
13+
`)
14+
md.Convert(os.Stdout)
15+
}

0 commit comments

Comments
 (0)