{"library":"mdformat-footnote","title":"mdformat-footnote","description":"mdformat-footnote is a plugin for the opinionated Markdown formatter `mdformat`. It extends `mdformat` to properly parse, validate, and format Pandoc-style footnotes, ensuring consistent styling within Markdown documents. The current version is 0.1.3, and releases are tied to supporting new `mdformat` versions or addressing specific formatting issues.","language":"python","status":"active","last_verified":"Mon May 18","install":{"commands":["pip install mdformat mdformat-footnote"],"cli":null},"imports":["import mdformat\n# No direct import for mdformat_footnote's plugin module is typically needed for userland code, as mdformat loads it."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import mdformat\n\nmarkdown_with_footnotes = (\n    \"\"\"\nHere is a footnote reference.[^1]\n\nAnd here's a longer one.[^bignote]\n\n[^1]: This is the first footnote.\n[^bignote]: Here's one with multiple paragraphs and code.\n    \n    Subsequent paragraphs are indented to show that they belong to the previous footnote.\n\"\"\"\n)\n\n# Using the Python API to format with the footnote extension\nformatted_markdown = mdformat.text(markdown_with_footnotes, extensions={'footnote'})\n\nprint(\"--- Original ---\")\nprint(markdown_with_footnotes)\nprint(\"\\n--- Formatted ---\")\nprint(formatted_markdown)\n\n# To use via CLI (assuming mdformat and mdformat-footnote are installed):\n# Save the above markdown to a file, e.g., 'input.md'\n# Then run: mdformat --extensions footnote input.md\n","lang":"python","description":"To use `mdformat-footnote`, you need to install both `mdformat` and `mdformat-footnote`. Then, when using `mdformat` (either via the Python API or CLI), you must explicitly enable the 'footnote' extension.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-18","installed_version":"0.1.1","pypi_latest":"0.1.3","is_stale":true,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.9,"avg_import_s":0.11,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.11,"mem_mb":3.7,"disk_size":"20.0M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":1.8,"import_time_s":0.08,"mem_mb":3.7,"disk_size":"21M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.16,"mem_mb":4.2,"disk_size":"21.9M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":1.8,"import_time_s":0.14,"mem_mb":4.2,"disk_size":"22M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.14,"mem_mb":4.8,"disk_size":"13.8M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":1.7,"import_time_s":0.15,"mem_mb":4.8,"disk_size":"14M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.1,"mem_mb":3.7,"disk_size":"13.5M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":1.8,"import_time_s":0.1,"mem_mb":3.5,"disk_size":"14M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.05,"mem_mb":2.2,"disk_size":"19.5M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"mdformat","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.3,"import_time_s":0.05,"mem_mb":2.2,"disk_size":"20M"}]}}