Implemented links

This commit is contained in:
Eduard Urbach 2024-04-01 11:54:14 +02:00
parent b0a8dfdc9f
commit 412dcbd4a4
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
3 changed files with 91 additions and 5 deletions

View file

@ -4,6 +4,7 @@ Markdown renderer.
## Features
- Links
- Headers
- Paragraphs
@ -17,7 +18,6 @@ go get git.akyoto.dev/go/markdown
```go
html := markdown.Render("# Header")
fmt.Println(html)
```
## Tests
@ -26,14 +26,16 @@ fmt.Println(html)
PASS: TestEmpty
PASS: TestParagraphs
PASS: TestHeader
PASS: TestLink
PASS: TestCombined
PASS: TestSecurity
coverage: 100.0% of statements
```
## Benchmarks
```
BenchmarkSmall-12 2187232 544.9 ns/op 296 B/op 9 allocs/op
BenchmarkSmall-12 2019103 591.4 ns/op 296 B/op 9 allocs/op
```
## License