Implemented headers and paragraphs

This commit is contained in:
Eduard Urbach 2024-03-31 23:08:01 +02:00
parent 0ec909aec6
commit b0a8dfdc9f
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
4 changed files with 115 additions and 6 deletions

View file

@ -4,7 +4,8 @@ Markdown renderer.
## Features
- Headers
- Paragraphs
## Installation
@ -15,16 +16,25 @@ go get git.akyoto.dev/go/markdown
## Usage
```go
html := markdown.Render("# Header")
fmt.Println(html)
```
## Tests
```
PASS: TestEmpty
PASS: TestParagraphs
PASS: TestHeader
PASS: TestCombined
coverage: 100.0% of statements
```
## Benchmarks
```
BenchmarkSmall-12 2187232 544.9 ns/op 296 B/op 9 allocs/op
```
## License