MCPcopy Index your code
hub / github.com/pytest-dev/pytest / convert_rst_to_md

Function convert_rst_to_md

scripts/generate-gh-release-notes.py:44–49  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

42
43
44def convert_rst_to_md(text: str) -> str:
45 result = pypandoc.convert_text(
46 text, "gfm", format="rst", extra_args=["--wrap=preserve"]
47 )
48 assert isinstance(result, str), repr(result)
49 return result
50
51
52def main(argv: Sequence[str]) -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…