Skip to content

Commit

Permalink
Fix inline images being displayed in feed (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf authored Jan 31, 2025
1 parent 171f9b7 commit e98a43a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Mlem.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3205,7 +3205,7 @@
repositoryURL = "https://github.com/mlemgroup/LemmyMarkdownUI";
requirement = {
kind = upToNextMinorVersion;
minimumVersion = 0.6.0;
minimumVersion = 0.7.0;
};
};
0392826E2BC84E480097F91A /* XCRemoteSwiftPackageReference "SwiftUI-Introspect" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/mlemgroup/LemmyMarkdownUI",
"state" : {
"revision" : "ab579f496b1acaa3230dcc5ae16fa804f53ed504",
"version" : "0.6.0"
"revision" : "ef959bfe8f20a2ca78ced88e91073b5b5768a18d",
"version" : "0.7.0"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ extension MarkdownConfiguration {
) }

static var dimmed: MarkdownConfiguration { .init(
inlineImageLoader: { _ in },
imagePresentationMode: .inline,
inlineImageLoader: { _ in }, // Don't load inline images; they will remain as placeholders
imageBlockView: { imageView($0, shouldBlur: false) },
wrapCodeBlockLines: Settings.main.wrapCodeBlockLines,
primaryColor: Palette.main.secondary,
Expand Down

0 comments on commit e98a43a

Please sign in to comment.