Update.
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
import "markdown" for Markdown
|
||||
|
||||
var p = Markdown.toHtml("This is a paragraph.")
|
||||
System.print(p) // expect: <p>This is a paragraph.</p>
|
||||
|
||||
var multi = Markdown.toHtml("First paragraph.\n\nSecond paragraph.")
|
||||
System.print(multi.contains("<p>First paragraph.</p>")) // expect: true
|
||||
System.print(multi.contains("<p>Second paragraph.</p>")) // expect: true
|
||||
|
||||
var afterHeading = Markdown.toHtml("# Title\n\nSome text here.")
|
||||
System.print(afterHeading.contains("<h1>Title</h1>")) // expect: true
|
||||
System.print(afterHeading.contains("<p>Some text here.</p>")) // expect: true
|
||||
|
||||
var empty = Markdown.toHtml("")
|
||||
System.print(empty) // expect:
|
||||
Reference in New Issue
Block a user