Capy-Bearer Documentation

markdown_to_html

lib call

Capy

function markdown_to_html(source : string) string
function markdown_to_html(source : string, options : any) string

Description

markdown_to_html() renders Markdown source as HTML.

Raw HTML stays escaped unless options["allow_html"] is true. Only enable it for trusted source.

Parameters

source : the Markdown source text

options : render options

Return Values

the HTML text

Example

Capy

print(markdown_to_html("**bold**"), "\n")

Output

<p><strong>bold</strong></p>