diff --git a/Tusker/HTMLConverter.swift b/Tusker/HTMLConverter.swift index 4ceae78d..e2d52396 100644 --- a/Tusker/HTMLConverter.swift +++ b/Tusker/HTMLConverter.swift @@ -106,9 +106,9 @@ struct HTMLConverter { let index = (try? node.elementSiblingIndex()) ?? 0 // we use the monospace digit font so that the periods of all the list items line up // TODO: this probably breaks with dynamic type - bullet = NSAttributedString(string: "\(index + 1).\t", attributes: [.font: UIFont.monospacedDigitSystemFont(ofSize: font.pointSize, weight: .regular)]) + bullet = NSAttributedString(string: "\(index + 1).\t", attributes: [.font: UIFont.monospacedDigitSystemFont(ofSize: font.pointSize, weight: .regular), .foregroundColor: color]) } else if parentTag == "ul" { - bullet = NSAttributedString(string: "\u{2022}\t", attributes: [.font: font]) + bullet = NSAttributedString(string: "\u{2022}\t", attributes: [.font: font, .foregroundColor: color]) } else { bullet = NSAttributedString() }