Initial commit

This commit is contained in:
Eduard Urbach 2024-03-31 21:01:47 +02:00
commit a4e5243ab3
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
6 changed files with 68 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
*
!*/
!.gitignore
!*.go
!*.md
!*.mod
!*.sum

35
README.md Normal file
View File

@ -0,0 +1,35 @@
# markdown
Markdown renderer.
## Features
## Installation
```shell
go get git.akyoto.dev/go/markdown
```
## Usage
```go
```
## Tests
```
```
## Benchmarks
## License
Please see the [license documentation](https://akyoto.dev/license).
## Copyright
© 2024 Eduard Urbach

6
Render.go Normal file
View File

@ -0,0 +1,6 @@
package markdown
// Render creates HTML from the supplied markdown text.
func Render(markdown string) string {
return ""
}

13
Render_test.go Normal file
View File

@ -0,0 +1,13 @@
package markdown_test
import (
"testing"
"git.akyoto.dev/go/assert"
"git.akyoto.dev/go/markdown"
)
func TestRender(t *testing.T) {
html := markdown.Render("# Hello")
assert.Equal(t, html, "<h1>Hello</h1>")
}

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module git.akyoto.dev/go/markdown
go 1.22.1
require git.akyoto.dev/go/assert v0.1.3

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
git.akyoto.dev/go/assert v0.1.3 h1:QwCUbmG4aZYsNk/OuRBz1zWVKmGlDUHhOnnDBfn8Qw8=
git.akyoto.dev/go/assert v0.1.3/go.mod h1:0GzMaM0eURuDwtGkJJkCsI7r2aUKr+5GmWNTFPgDocM=