Skip to content

Commit f71dd29

Browse files
Merge pull request #1186 from wordpress-mobile/issue/make_s_default_for_striketrough
Make default HTML elements to represent striketrough to be s
2 parents bf9d0b5 + 6141d49 commit f71dd29

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Aztec/Classes/NSAttributedString/Conversions/AttributedStringParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ private extension AttributedStringParser {
899899
return representationElement.toElementNode()
900900
}
901901

902-
return ElementNode(type: .strike)
902+
return ElementNode(type: .s)
903903
}
904904

905905
/// Extracts all of the Code Elements contained within a collection of Attributes.

AztecTests/NSAttributedString/Conversions/AttributedStringParserTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class AttributedStringParserTests: XCTestCase {
134134
XCTFail()
135135
return
136136
}
137-
XCTAssertEqual(strike.name, Element.strike.rawValue)
137+
XCTAssertEqual(strike.name, Element.s.rawValue)
138138
XCTAssertEqual(strike.children.count, 1)
139139

140140
guard let text = strike.children.first as? TextNode else {

0 commit comments

Comments
 (0)