-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing node updates during scanning of annotated strings
- Loading branch information
1 parent
004eea4
commit 64cd1a9
Showing
4 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,15 @@ final class HTMLSyntaxTests: XCTestCase { | |
|
||
func testParagraph() { | ||
let text = """ | ||
<p>Hello World: <a href="link">link</a></p> | ||
<p align="center"> | ||
<img src="https://img.shields.io/badge/Swift-5.3-orange.svg" /> | ||
<a href="https://swift.org/package-manager"> | ||
<img src="https://img.shields.io/badge/swiftpm-compatible-brightgreen.svg?style=flat" alt="Swift Package Manager" /> | ||
</a> | ||
<a href="https://twitter.com/nerdsupremacist"> | ||
<img src="https://img.shields.io/badge/[email protected]?style=flat" alt="Twitter: @nerdsupremacist" /> | ||
</a> | ||
</p> | ||
""" | ||
|
||
let html = try! HTMLNodeParser().parse(text) | ||
|