Implemented links
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user