import lib // Integration tests: converting complex markdown documents // Full blog post with mixed content fn test_full_blog_post(): Unit with {Test} = { let md = "# Welcome to My Blog\n\nThis is my **first post** about *Lux*.\n\n## Getting Started\n\nHere's some code:\n\n```lux\nfn main(): Unit = Console.print(\"hello\")\n```\n\nCheck out [the docs](https://example.com) for more.\n\n---\n\nThanks for reading!" let html = lib.toHtml(md) Test.assert(String.contains(html, "

Welcome to My Blog

"), "has h1") Test.assert(String.contains(html, "first post"), "has bold") Test.assert(String.contains(html, "Lux"), "has italic") Test.assert(String.contains(html, "

Getting Started

"), "has h2") Test.assert(String.contains(html, "
"), "has code block with lang")
    Test.assert(String.contains(html, "the docs"), "has link")
    Test.assert(String.contains(html, "
"), "has horizontal rule") Test.assert(String.contains(html, "Thanks for reading!"), "has closing paragraph") } // Document with various list types fn test_mixed_lists(): Unit with {Test} = { let md = "Shopping list:\n\n- Apples\n- Bananas\n- Cherries\n\nSteps:\n\n1. Preheat oven\n2. Mix ingredients\n3. Bake for 30 min" let html = lib.toHtml(md) Test.assert(String.contains(html, "