This commit is contained in:
2026-01-24 23:40:22 +01:00
parent 1a0f7f51a1
commit 8c1a721c4c
105 changed files with 23275 additions and 94 deletions
+16
View File
@@ -0,0 +1,16 @@
// retoor <retoor@molodetz.nl>
import "markdown" for Markdown
var code = Markdown.toHtml("```\ncode here\n```")
System.print(code.contains("<pre><code>")) // expect: true
System.print(code.contains("code here")) // expect: true
System.print(code.contains("</code></pre>")) // expect: true
var quote = Markdown.toHtml("> quoted text")
System.print(quote.contains("<blockquote>")) // expect: true
System.print(quote.contains("quoted text")) // expect: true
System.print(quote.contains("</blockquote>")) // expect: true
var hr = Markdown.toHtml("---")
System.print(hr.contains("<hr>")) // expect: true