Fixes #2117 - Disable underlining for links defined in the html body:

- https://github.com/Cocoanetics/DTCoreText/issues/898
This commit is contained in:
Stefan Ceriu
2023-11-20 10:42:37 +02:00
committed by Stefan Ceriu
parent f2391394a7
commit b0567e5004
4 changed files with 7 additions and 5 deletions
@@ -92,7 +92,8 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
DTDefaultFontFamily: defaultFont.familyName,
DTDefaultFontName: defaultFont.fontName,
DTDefaultFontSize: defaultFont.pointSize,
DTDefaultStyleSheet: DTCSSStylesheet(styleBlock: defaultCSS) as Any
DTDefaultStyleSheet: DTCSSStylesheet(styleBlock: defaultCSS) as Any,
DTDefaultLinkDecoration: false
]
guard let builder = DTHTMLAttributedStringBuilder(html: data, options: parsingOptions, documentAttributes: nil) else {