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)
| 599 | |
| 600 | |
| 601 | def 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 |
nothing calls this directly
no test coverage detected