Implemented strikethrough text

This commit is contained in:
Eduard Urbach 2024-04-02 20:50:33 +02:00
parent 1fe494b62c
commit b520b6bdd9
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
3 changed files with 29 additions and 5 deletions

View file

@ -5,7 +5,7 @@ A markdown renderer that supports only a subset of the CommonMark spec in order
## Features
- Code blocks
- Formatting (bold, italic, monospace)
- Formatting (bold, italic, monospace and strikethrough)
- Links
- Lists
- Headers
@ -34,6 +34,7 @@ PASS: TestParagraph
PASS: TestHeader
PASS: TestItalic
PASS: TestBold
PASS: TestStrike
PASS: TestLink
PASS: TestList
PASS: TestTables
@ -48,9 +49,9 @@ coverage: 100.0% of statements
## Benchmarks
```
BenchmarkSmall-12 5986922 187.5 ns/op 32 B/op 1 allocs/op
BenchmarkMedium-12 1000000 1077 ns/op 512 B/op 1 allocs/op
BenchmarkLarge-12 255178 4055 ns/op 2560 B/op 2 allocs/op
BenchmarkSmall-12 6202569 190.9 ns/op 32 B/op 1 allocs/op
BenchmarkMedium-12 1000000 1080 ns/op 512 B/op 1 allocs/op
BenchmarkLarge-12 271048 4115 ns/op 2560 B/op 2 allocs/op
```
## License