diff options
Diffstat (limited to 'HutchTests')
| -rw-r--r-- | HutchTests/ReadmeViewTests.swift | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/HutchTests/ReadmeViewTests.swift b/HutchTests/ReadmeViewTests.swift index e9bab0b..8cced03 100644 --- a/HutchTests/ReadmeViewTests.swift +++ b/HutchTests/ReadmeViewTests.swift @@ -55,6 +55,16 @@ struct MarkdownRenderingTests { } @Test + func markdownTableAlignment() { + let input = "| Left | Center | Right |\n|:-----|:------:|------:|\n| a | b | c |" + let html = markdownToHTML(input) + + #expect(html.contains("text-align: left;")) + #expect(html.contains("text-align: center;")) + #expect(html.contains("text-align: right;")) + } + + @Test func markdownStrikethrough() { let html = markdownToHTML("~~deleted~~") |
