From 4a4b9e168b74cb52564fb9b61d234ad7489b6e03 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 2 Apr 2024 19:20:51 +0200 Subject: [PATCH] Removed unnecessary checks --- README.md | 6 +++--- Render.go | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 556e92a..2d2dafc 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Render.go b/Render.go index 07c6de3..5037482 100644 --- a/Render.go +++ b/Render.go @@ -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 {