MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / markdownFromFile

Function markdownFromFile

markdown/__init__.py:601–611  ·  view source on GitHub ↗

Read markdown code from a file and write it to a file or a stream.

(input = None,
                     output = None,
                     extensions = [],
                     encoding = None,
                     safe_mode = False,
                     output_format = DEFAULT_OUTPUT_FORMAT)

Source from the content-addressed store, hash-verified

599
600
601def markdownFromFile(input = None,
602 output = None,
603 extensions = [],
604 encoding = None,
605 safe_mode = False,
606 output_format = DEFAULT_OUTPUT_FORMAT):
607 """Read markdown code from a file and write it to a file or a stream."""
608 md = Markdown(extensions=load_extensions(extensions),
609 safe_mode=safe_mode,
610 output_format=output_format)
611 md.convertFile(input, output, encoding)
612
613
614

Callers

nothing calls this directly

Calls 3

convertFileMethod · 0.95
MarkdownClass · 0.85
load_extensionsFunction · 0.85

Tested by

no test coverage detected