md
import "osl/md"Example
import "osl/md"
log md.toHTML("# Hello\n\n**world**")
// <h1 id="hello">Hello</h1>\n<p><strong>world</strong></p>\nWith serve
import "osl/md"
import "osl/serve"
*serve.Router app = serve.new()
app.GET("/", def(ctx) -> (
string body = md.toHTML("# Home\n\nWelcome.")
ctx.html(200, body)
))
app.run(":8080")With template
API reference
md.toHTML(source) → string
md.toHTMLUnsafe(source) → string
md.fromHTML(source) → string
Notes
Last updated