Implemented headers and paragraphs

This commit is contained in:
2024-03-31 23:08:01 +02:00
parent a4e5243ab3
commit 93d5949eff
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