Implemented links
This commit is contained in:
parent
b0a8dfdc9f
commit
412dcbd4a4
3 changed files with 91 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue