Skip to content

Commit a09fade

Browse files
committed
Make sure HTML is set correctly when bold is active on headings.
1 parent 1654ac5 commit a09fade

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Aztec/Classes/Converters/StringAttributesToAttributes/Implementations/BoldStringAttributeConverter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ open class BoldStringAttributeConverter: StringAttributeConverter {
3232
// MARK: - Style Detection
3333

3434
func shouldEnableBoldElement(for attributes: [NSAttributedString.Key: Any]) -> Bool {
35-
if isHeading(for: attributes) {
35+
if isHeading(for: attributes) && Configuration.headersWithBoldTrait {
3636
// If this is a heading then shadow represents bold elements since
3737
// headings are bold by default
3838
return hasShadowTrait(for: attributes)

0 commit comments

Comments
 (0)