Skip to content

Commit

Permalink
Fixed broken list elements with links
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowy-pycoder committed Nov 13, 2024
1 parent 615506e commit 0f83eef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions goso.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ var (
divPattern = regexp.MustCompile(`<div.*?>`)
bqPattern = regexp.MustCompile(`<blockquote.*?>`)
r = strings.NewReplacer(
"<li><p>", "",
"<li><a href", "<a href",
"<p>", "",
"</p>", "",
"<strong>", bold,
Expand Down

0 comments on commit 0f83eef

Please sign in to comment.