stream-chat-swift icon indicating copy to clipboard operation
stream-chat-swift copied to clipboard

Allow custom font usage with default markdown library

Open dimarig opened this issue 7 months ago • 1 comments

Hey GetStream Team!

What are you trying to achieve?

Our team trying to implement markdown in chat with our own font, but DefaultMarkdownFormatter.Attributes.Code and SwiftyMarkdown library are closed by internal access modifier

If possible, how can you achieve this currently?

The only option is to add same or another markdown SDK to our project and override format(_ string: String) with same implementation, but different font

What would be the better way?

In my honest opinion, best way is to make them public. Or create a new way to configure Markdown usage.

GetStream Environment

GetStream Chat version:4.41.0 GetStream Chat frameworks: StreamChat, StreamChatUI iOS version:14+ Swift version:5.9 Xcode version:15.x Device:Any

Thanks!

dimarig avatar Nov 23 '23 11:11 dimarig