# Path: readme_renderer/markdown.py
# _EXTRA_WARNING = (
#     "Markdown renderers are not available. "
#     "Install 'readme_renderer[md]' to enable Markdown rendering."
# )
# _LANG_ALIASES = {
#     'python': 'python3',
# }
# def render(raw, variant="GFM", **kwargs):
# def _highlight(html):
#     def replacer(match):


import pytest
from readme_renderer.markdown import render, variants



@pytest.mark.skipif(variants, reason="Extra is installed")
@pytest.mark.parametrize("variant", ('GFM', 'CommonMark'))
def test_no_extra(variant):
    with pytest.warns(UserWarning) as warnings:

# Path: readme_renderer/markdown.py
# _EXTRA_WARNING = (
#     "Markdown renderers are not available. "
#     "Install 'readme_renderer[md]' to enable Markdown rendering."
# )
# _LANG_ALIASES = {
#     'python': 'python3',
# }
# def render(raw, variant="GFM", **kwargs):
# def _highlight(html):
#     def replacer(match):


# Path: tests/test_noextra.py
import pytest
from readme_renderer.markdown import render, variants




@pytest.mark.skipif(variants, reason="Extra is installed")
@pytest.mark.parametrize("variant", ('GFM', 'CommonMark'))
def test_no_extra(variant):
    with pytest.warns(UserWarning) as warnings:

        assert render('Hello', variant=variant) is None