Initial commit
This commit is contained in:
commit
a4e5243ab3
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
*
|
||||
!*/
|
||||
!.gitignore
|
||||
!*.go
|
||||
!*.md
|
||||
!*.mod
|
||||
!*.sum
|
35
README.md
Normal file
35
README.md
Normal 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
6
Render.go
Normal 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
13
Render_test.go
Normal 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
5
go.mod
Normal file
@ -0,0 +1,5 @@
|
||||
module git.akyoto.dev/go/markdown
|
||||
|
||||
go 1.22.1
|
||||
|
||||
require git.akyoto.dev/go/assert v0.1.3
|
Loading…
Reference in New Issue
Block a user