Implemented image links

This commit is contained in:
2024-04-03 21:13:59 +02:00
parent 463c8b4a85
commit 809b89d689
3 changed files with 62 additions and 31 deletions

View File

@ -9,6 +9,7 @@ A markdown renderer that supports only a subset of the CommonMark spec in order
- Italic
- Links
- Lists
- Images
- Headers
- Paragraphs
- Quotes
@ -38,6 +39,7 @@ PASS: TestItalic
PASS: TestBold
PASS: TestStrike
PASS: TestLink
PASS: TestImage
PASS: TestList
PASS: TestTables
PASS: TestCode
@ -51,9 +53,9 @@ coverage: 100.0% of statements
## Benchmarks
```
BenchmarkSmall-12 5836533 205.3 ns/op 32 B/op 1 allocs/op
BenchmarkMedium-12 967740 1103 ns/op 512 B/op 1 allocs/op
BenchmarkLarge-12 277908 4099 ns/op 2560 B/op 2 allocs/op
BenchmarkSmall-12 5884641 201.5 ns/op 32 B/op 1 allocs/op
BenchmarkMedium-12 938371 1124 ns/op 512 B/op 1 allocs/op
BenchmarkLarge-12 277065 4115 ns/op 2560 B/op 2 allocs/op
```
## License