From a4e5243ab359422cb23b7f263e572986bbbded75 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 31 Mar 2024 21:01:47 +0200 Subject: [PATCH] Initial commit --- .gitignore | 7 +++++++ README.md | 35 +++++++++++++++++++++++++++++++++++ Render.go | 6 ++++++ Render_test.go | 13 +++++++++++++ go.mod | 5 +++++ go.sum | 2 ++ 6 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 Render.go create mode 100644 Render_test.go create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26b0a26 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +* +!*/ +!.gitignore +!*.go +!*.md +!*.mod +!*.sum \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b395b3f --- /dev/null +++ b/README.md @@ -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 \ No newline at end of file diff --git a/Render.go b/Render.go new file mode 100644 index 0000000..3197db0 --- /dev/null +++ b/Render.go @@ -0,0 +1,6 @@ +package markdown + +// Render creates HTML from the supplied markdown text. +func Render(markdown string) string { + return "" +} diff --git a/Render_test.go b/Render_test.go new file mode 100644 index 0000000..c2ab965 --- /dev/null +++ b/Render_test.go @@ -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, "

Hello

") +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f178769 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module git.akyoto.dev/go/markdown + +go 1.22.1 + +require git.akyoto.dev/go/assert v0.1.3 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..9fc2547 --- /dev/null +++ b/go.sum @@ -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=