MCPcopy Create free account
hub / github.com/catchorg/Catch2 / outputMarkdown

Function outputMarkdown

tools/scripts/updateDocumentToC.py:259–266  ·  view source on GitHub ↗

Writes to an output file if `outfile` is a valid path.

(markdown_cont, output_file)

Source from the content-addressed store, hash-verified

257 return markdown
258
259def outputMarkdown(markdown_cont, output_file):
260 """
261 Writes to an output file if `outfile` is a valid path.
262
263 """
264 if output_file:
265 with open(output_file, 'w') as out:
266 out.write(markdown_cont)
267
268def markdownToclify(
269 input_file,

Callers 1

markdownToclifyFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected