import io
import sys
from os import path
import pytest
from nikola.plugins.compile.markdown import CompileMarkdown
from .helper import FakeSite
# The tag should not have a closing tag, but it wasn't included in xml.etree.ElementTree.HTML_EMPTY before Python 3.11
SOURCE_CLOSE_TAG = '' if sys.version_info < (3, 11) else ''
@pytest.mark.parametrize(
"input_str, expected_output",
[
pytest.param("", "", id="empty"),
pytest.param(
"[podcast]https://archive.org/download/Rebeldes_Stereotipos/rs20120609_1.mp3[/podcast]",
'
',
id="mdx podcast",
),
pytest.param(
"~~striked out text~~",
"
striked out text
",
id="strikethrough",
),
pytest.param(
"""\
#!python
from this
""",
"""\