Skip to content

Commit 193e5c6

Browse files
committed
add image/gif filter
1 parent 82ab0e9 commit 193e5c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/src/common/Markdown.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import gfm from 'remark-gfm';
66
// Copy from mlflow/server/js/src/shared/web-shared/genai-markdown-renderer/GenAIMarkdownRenderer.tsx
77
// Related PR: https://github.com/mlflow/mlflow/pull/16761
88
const urlTransform: UrlTransform = (value) => {
9-
if (value.startsWith('data:image/png;') || value.startsWith('data:image/jpeg;')) {
9+
if (value.startsWith('data:image/png;') || value.startsWith('data:image/jpeg;') || value.startsWith('data:image/gif;')) {
1010
return value;
1111
}
1212
return defaultUrlTransform(value);

0 commit comments

Comments
 (0)