MCPcopy Index your code
hub / github.com/python/cpython / to_markdown

Function to_markdown

Tools/scripts/summarize_stats.py:1420–1428  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1418 level: int = 2,
1419) -> None:
1420 def to_markdown(x):
1421 if hasattr(x, "markdown"):
1422 return x.markdown()
1423 elif isinstance(x, str):
1424 return x
1425 elif x is None:
1426 return ""
1427 else:
1428 raise TypeError(f"Can't convert {x} to markdown")
1429
1430 match obj:
1431 case Section():

Callers 1

output_markdownFunction · 0.85

Calls 1

markdownMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…