MCPcopy
hub / github.com/github/spec-kit / _markdown_paragraph_containing

Function _markdown_paragraph_containing

tests/test_agent_config_consistency.py:82–88  ·  view source on GitHub ↗
(path: str, marker: str)

Source from the content-addressed store, hash-verified

80
81
82def _markdown_paragraph_containing(path: str, marker: str) -> str:
83 value = _markdown_value_containing(path, marker)
84 normalized_marker = _normalized_markdown(marker)
85 for paragraph in re.split(r"\n\s*\n", value):
86 if normalized_marker in _normalized_markdown(paragraph):
87 return paragraph
88 raise AssertionError(f"Expected issue template paragraph containing {marker!r}")
89
90
91def _supported_agent_names_from_agent_request_template() -> list[str]:

Calls 2

_normalized_markdownFunction · 0.85

Tested by

no test coverage detected