Add Gemini parser test for multiple consecutive preformatted blocks
This commit is contained in:
parent
800d9ca538
commit
f72025ddb7
|
@ -111,6 +111,10 @@ class GeminiParserTests: XCTestCase {
|
||||||
.preformattedText(">not a quote", alt: nil),
|
.preformattedText(">not a quote", alt: nil),
|
||||||
.preformattedText("=> /link not a link", alt: nil),
|
.preformattedText("=> /link not a link", alt: nil),
|
||||||
], message: "don't parse special lines inside preformatted")
|
], message: "don't parse special lines inside preformatted")
|
||||||
|
assertParseLines(text: "```a\na line\n```\n```b\nb line\n```", lines: [
|
||||||
|
.preformattedText("a line", alt: "a"),
|
||||||
|
.preformattedText("b line", alt: "b"),
|
||||||
|
], message: "parse consecutive preformatted blocks")
|
||||||
}
|
}
|
||||||
|
|
||||||
func testComplexDocument() {
|
func testComplexDocument() {
|
||||||
|
|
Loading…
Reference in New Issue