Skip to content

Commit 36052a8

Browse files
committed
include jpeg support as well
1 parent 11c1b0f commit 36052a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Elastic.Markdown/IO/DocumentationSet.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public DocumentationSet(BuildContext context)
4848
.Select(f => context.ReadFileSystem.FileInfo.New(f))
4949
.Select<IFileInfo, DocumentationFile>(file => file.Extension switch
5050
{
51+
".jpg" => new ImageFile(file, SourcePath, "image/jpeg"),
52+
".jpeg" => new ImageFile(file, SourcePath, "image/jpeg"),
5153
".gif" => new ImageFile(file, SourcePath, "image/gif"),
5254
".svg" => new ImageFile(file, SourcePath, "image/svg+xml"),
5355
".png" => new ImageFile(file, SourcePath),

0 commit comments

Comments
 (0)