Hello there. Thanks for a great open source project :)
I'm using SwiftyMarkdown version 0.6.0
I haven't used SwiftyMarkdown for very long, so maybe this is on me, but it seems to me that there is a problem with formatting bold tags.
See the following example code:
let message = "this is **bold** text"
let swiftyMarkdown = SwiftyMarkdown.init(string: message)
swiftyMarkdown.body.fontName = UIFont.systemFont(ofSize: 13, weight: UIFont.Weight.semibold).fontName
swiftyMarkdown.body.fontSize = 13
swiftyMarkdown.bold.fontName = UIFont.systemFont(ofSize: 13, weight: UIFont.Weight.heavy).fontName
swiftyMarkdown.bold.fontSize = 13
let markdown = swiftyMarkdown.attributedString()
print("___")
print(markdown)
print("___")
In this example all the body text is changed correctly to the .semibold weight, but the bold text isn't changed to .heavy weight. See the following debug print:
Here it appear that the "bold"-text is reset to .normal weight. I've also tried changing other properties og the bold style, but none of them take effect.
Is this a bug, or is it intended behaviour? it so, how can I set both the weight of the body text and bold text?
Hello there. Thanks for a great open source project :)
I'm using SwiftyMarkdown version
0.6.0
I haven't used SwiftyMarkdown for very long, so maybe this is on me, but it seems to me that there is a problem with formatting bold tags.See the following example code:
In this example all the body text is changed correctly to the
.semibold
weight, but the bold text isn't changed to.heavy
weight. See the following debug print:Here it appear that the "bold"-text is reset to
.normal
weight. I've also tried changing other properties og the bold style, but none of them take effect.Is this a bug, or is it intended behaviour? it so, how can I set both the weight of the body text and bold text?