Skip to content

Commit 0f83eef

Browse files
author
shadowy-pycoder
committed
Fixed broken list elements with links
1 parent 615506e commit 0f83eef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

goso.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ var (
4040
divPattern = regexp.MustCompile(`<div.*?>`)
4141
bqPattern = regexp.MustCompile(`<blockquote.*?>`)
4242
r = strings.NewReplacer(
43+
"<li><p>", "",
44+
"<li><a href", "<a href",
4345
"<p>", "",
4446
"</p>", "",
4547
"<strong>", bold,

0 commit comments

Comments
 (0)