Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cl test: domaintext-md #2168

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cl/_testgop/domaintext-md/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module example

go 1.22

require github.com/xushiwei/markdown v0.1.0

require github.com/yuin/goldmark v1.7.8 // indirect
4 changes: 4 additions & 0 deletions cl/_testgop/domaintext-md/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/xushiwei/markdown v0.1.0 h1:Vjw4MVcwSEJge9ObA/3C1lrmNYX60nJwuVKdLYrf0+o=
github.com/xushiwei/markdown v0.1.0/go.mod h1:6hyvHMBrprwcCYXaw71W9WwBX1st9r+Rfsj+cKXW3EE=
github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic=
github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
13 changes: 13 additions & 0 deletions cl/_testgop/domaintext-md/in.gop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import (
"os"

"github.com/xushiwei/markdown"
)

md := markdown`
# Title

Hello world
`

md.convert os.Stdout
15 changes: 15 additions & 0 deletions cl/_testgop/domaintext-md/out.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package main

import (
"github.com/xushiwei/markdown"
"os"
)

func main() {
md := markdown.New(`
# Title

Hello world
`)
md.Convert(os.Stdout)
}