Enable blank line rules. (#132)

This commit is contained in:
Doug
2022-07-06 16:01:50 +01:00
committed by GitHub
parent 02eb4b35e2
commit 25d7ba55ad
114 changed files with 0 additions and 184 deletions
@@ -10,7 +10,6 @@ import DTCoreText
import Foundation
struct AttributedStringBuilder: AttributedStringBuilderProtocol {
private let temporaryBlockquoteMarkingColor = UIColor.magenta
private let temporaryCodeBlockMarkingColor = UIColor.cyan
private let linkColor = UIColor.blue
@@ -159,7 +158,6 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
}
private func addLinks(_ attributedString: NSMutableAttributedString) {
let string = attributedString.string
let range = NSRange(location: 0, length: attributedString.string.count)
@@ -17,7 +17,6 @@ public extension DTHTMLElement {
/// - imageHandler: An optional image handler to be run on `img` tags (if allowed) to update the `src` attribute.
@objc func sanitize(font: UIFont) {
if let name = name, !Self.allowedHTMLTags.contains(name) {
// This is an unsupported tag.
// Remove any attachments to fix rendering.
textAttachment = nil