Implemented links

This commit is contained in:
2024-04-01 11:54:14 +02:00
parent 93d5949eff
commit 862f9837e4
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