{"library":"types-markdown","code":"import markdown\nfrom typing import TYPE_CHECKING\n\n# The actual Markdown library is imported for runtime use\n# types-markdown provides the type hints for this 'markdown' module\n\nmarkdown_text = \"\"\"\n# Hello, Markdown!\n\nThis is a **bold** paragraph with an [inline link](https://example.com).\n\n- List item 1\n- List item 2\n\"\"\"\n\n# Convert Markdown to HTML\nhtml_output: str = markdown.markdown(markdown_text)\n\nprint(html_output)\n\nif TYPE_CHECKING:\n    # Example of type checking a function from the markdown library\n    # This part only runs during type checking, not runtime\n    from markdown import Markdown\n    md_parser: Markdown = markdown.Markdown(extensions=['fenced_code'])\n    typed_html: str = md_parser.convert(markdown_text)\n    # The type checker would ensure 'convert' returns a string and 'Markdown' is correctly instantiated\n","lang":"python","description":"This quickstart demonstrates how to use the `markdown` library with the `types-markdown` stubs implicitly providing type hints. The `TYPE_CHECKING` block shows how type checkers benefit from the stubs, ensuring correct usage of the `markdown` library's API.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}