We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b23032 commit cce6468Copy full SHA for cce6468
Sources/MarkdownUI/Shared/AttributedStringRenderer.swift
@@ -232,7 +232,15 @@ private extension AttributedStringRenderer {
232
guard let attachment = attachments[url] else {
233
return NSAttributedString()
234
}
235
- return NSAttributedString(attachment: attachment)
+
236
+ let result = NSMutableAttributedString(attachment: attachment)
237
238
+ result.addAttributes(
239
+ state.attributes,
240
+ range: NSRange(location: 0, length: result.length)
241
+ )
242
243
+ return result
244
#endif
245
246
0 commit comments