gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.25k stars 268 forks source link

Links styling #109

Closed alexisbronchart closed 1 year ago

alexisbronchart commented 2 years ago

I'd like to be able to customise links (font, color, ...) how can I do this? MarkdownStyle doesn't seem to allow it.

gonzalezreal commented 2 years ago

At the moment, you can use the .accentColor(_:) modifier to change the color of the links.

yonaskolb commented 1 year ago

I'd love to have a way to remove the underline from links. Is that possible?

gonzalezreal commented 1 year ago

MarkdownUI 2.0, currently under development, will support themes allowing link customization among other things.

RickiG commented 1 year ago

Looking forward to it, we are rewriting an app where there is html styled text from the backend being changed to markdown. We have 2 things we can't achieve currently. Using a custom font, and using different fonts for header and body. Gotta love designers:) We are scanning the attributedString looking for traits and substituting it manually, would love to have MarkdownUI handle these cases for us too. #featurerequest

gonzalezreal commented 1 year ago

Solved in MarkdownUI 2.0: https://github.com/gonzalezreal/swift-markdown-ui/releases/tag/2.0.0