Skip to content

Commit

Permalink
Closes #146 by adding image/svg+xml support for inline images
Browse files Browse the repository at this point in the history
  • Loading branch information
buro9 committed Jul 1, 2022
1 parent 5b4be04 commit ba34525
Show file tree
Hide file tree
Showing 2 changed files with 479 additions and 457 deletions.
2 changes: 1 addition & 1 deletion helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var (
// This is not exported as it's not useful by itself, and only has value
// within the AllowDataURIImages func
dataURIImagePrefix = regexp.MustCompile(
`^image/(gif|jpeg|png|webp);base64,`,
`^image/(gif|jpeg|png|svg\+xml|webp);base64,`,
)
)

Expand Down

0 comments on commit ba34525

Please sign in to comment.