Removed unnecessary checks
This commit is contained in:
parent
a06defdc3d
commit
4a4b9e168b
@ -43,9 +43,9 @@ coverage: 100.0% of statements
|
||||
## Benchmarks
|
||||
|
||||
```
|
||||
BenchmarkSmall-12 8495775 140.9 ns/op 32 B/op 1 allocs/op
|
||||
BenchmarkMedium-12 729133 1457 ns/op 512 B/op 1 allocs/op
|
||||
BenchmarkLarge-12 293284 3831 ns/op 2560 B/op 2 allocs/op
|
||||
BenchmarkSmall-12 8846642 135.5 ns/op 32 B/op 1 allocs/op
|
||||
BenchmarkMedium-12 711596 1465 ns/op 512 B/op 1 allocs/op
|
||||
BenchmarkLarge-12 279253 3874 ns/op 2560 B/op 2 allocs/op
|
||||
```
|
||||
|
||||
## License
|
||||
|
@ -117,7 +117,6 @@ func (r *renderer) processLine(line string) {
|
||||
return
|
||||
|
||||
case '-', '*':
|
||||
r.closeParagraphs()
|
||||
line = strings.TrimSpace(line[1:])
|
||||
|
||||
if r.listLevel == 0 {
|
||||
@ -150,7 +149,6 @@ func (r *renderer) processLine(line string) {
|
||||
}
|
||||
|
||||
case '|':
|
||||
r.closeParagraphs()
|
||||
line = line[1:]
|
||||
|
||||
if r.tableLevel == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user