Skip to content

Commit

Permalink
Merge pull request #222 from xuwei-k/patch-1
Browse files Browse the repository at this point in the history
support svg file
  • Loading branch information
mkurz authored Oct 31, 2023
2 parents aebfdd4 + 99499d8 commit 004a8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/play/doc/PlayDoc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class PlayDoc(
val parts = link.split('|')
val href = if (singlePage) "#" + parts.tail.head else addExtension(parts.tail.head)
(href, parts.head)
case image if image.endsWith(".png") =>
case image if Seq("png", "svg").exists(suffix => image.endsWith("." + suffix)) =>
val link = image match {
case full if full.startsWith("http://") => full
case absolute if absolute.startsWith("/") => resources + absolute
Expand Down

0 comments on commit 004a8bb

Please sign in to comment.