RENDER(Request& context) { DValue options; options["components"][":::warning"] = "components/markdown/warning"; options["components"]["node.code_block"] = "components/markdown/code_block"; String markdown_src = first( context.post["markdown"], file_get_contents("markdown-example.md") ); DValue ast = markdown_to_ast(markdown_src, options); String html = markdown_to_html(markdown_src, options); <>

UCE Test: Markdown

This page exercises `markdown_to_ast()` and `markdown_to_html()` with component hooks for `:::warning` directives and fenced code blocks.

Source

Rendered HTML

AST JSON
}