test: stabilize final PR 40 validation gates

This commit is contained in:
Alexandre Teixeira
2026-10-01 06:39:22 +01:00
parent f74a262f73
commit 5dfe1c353c
10 changed files with 424 additions and 146 deletions
+8
View File
@@ -18,6 +18,14 @@ def node_available():
pytest.skip("node binary not on PATH")
def test_blockquoted_html_codefence_does_not_leak_placeholders(node_available):
result = subprocess.run(
["node", "tests/markdown_codefence_placeholder_regression.mjs"],
cwd=_REPO, capture_output=True, text=True, timeout=15,
)
assert result.returncode == 0, result.stderr + result.stdout
def _run_markdown_case(markdown: str, render_expr: str = "mod.mdToHtml(input)", with_katex: bool = False):
script = textwrap.dedent(
r"""