diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/src/markdown/ParserTest.kt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/src/markdown/ParserTest.kt b/test/src/markdown/ParserTest.kt index b4538b07..7b1522bc 100644 --- a/test/src/markdown/ParserTest.kt +++ b/test/src/markdown/ParserTest.kt @@ -14,6 +14,16 @@ public class ParserTest { println(markdown.dump()) } + Test fun link() { + val markdown = MarkdownProcessor().parse("text [links]") + println(markdown.dump()) + } + + Test fun linkWithHref() { + val markdown = MarkdownProcessor().parse("text [links](http://destination)") + println(markdown.dump()) + } + Test fun multiline() { val markdown = MarkdownProcessor().parse( """ @@ -44,6 +54,28 @@ number two println(markdown.dump()) } + Test fun bulletListWithLines() { + val markdown = MarkdownProcessor().parse( +""" +* list item 1 + continue 1 +* list item 2 + continue 2 + """) + println(markdown.dump()) + } + + Test fun bulletListStrong() { + val markdown = MarkdownProcessor().parse( +""" +* list *item* 1 + continue 1 +* list *item* 2 + continue 2 + """) + println(markdown.dump()) + } + Test fun emph() { val markdown = MarkdownProcessor().parse("*text*") println(markdown.dump()) |