diff --git a/src/Verso.Blazor.Shared/Components/Notebook/DashboardCell.razor b/src/Verso.Blazor.Shared/Components/Notebook/DashboardCell.razor index 2eb970b..5e48989 100644 --- a/src/Verso.Blazor.Shared/Components/Notebook/DashboardCell.razor +++ b/src/Verso.Blazor.Shared/Components/Notebook/DashboardCell.razor @@ -65,6 +65,12 @@ @((MarkupString)output.Content) } + else if (output.MimeType.StartsWith("image/", StringComparison.OrdinalIgnoreCase)) + { +
+ +
+ } else {
diff --git a/src/Verso.Blazor.Shared/Components/Notebook/PresentationView.razor b/src/Verso.Blazor.Shared/Components/Notebook/PresentationView.razor index 6ad02ed..99d9dc8 100644 --- a/src/Verso.Blazor.Shared/Components/Notebook/PresentationView.razor +++ b/src/Verso.Blazor.Shared/Components/Notebook/PresentationView.razor @@ -31,6 +31,12 @@ @((MarkupString)output.Content)
} + else if (output.MimeType.StartsWith("image/", StringComparison.OrdinalIgnoreCase)) + { +
+ +
+ } else {
diff --git a/src/Verso/Extensions/Layouts/PresentationLayout.cs b/src/Verso/Extensions/Layouts/PresentationLayout.cs index ed30271..42cbfc6 100644 --- a/src/Verso/Extensions/Layouts/PresentationLayout.cs +++ b/src/Verso/Extensions/Layouts/PresentationLayout.cs @@ -86,6 +86,16 @@ public Task RenderLayoutAsync(IReadOnlyList cells, IVer sb.Append(output.Content); sb.Append("
"); } + else if (output.MimeType.StartsWith("image/", StringComparison.OrdinalIgnoreCase)) + { + sb.Append("
"); + sb.Append(""); + sb.Append("
"); + } else { sb.Append("
");