tessl install tessl/pypi-mdutils@1.8.0A comprehensive Python library for programmatically creating and manipulating Markdown files with support for headers, tables, lists, images, links, and text formatting.
Agent Success
Agent success rate when using this tile
80%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.9x
Baseline
Agent success rate without this tile
42%
Build a Python program that generates a structured Markdown report where content sections can be filled in non-sequentially. The report should have a predefined structure with placeholders that get populated with data computed at different stages.
The program should create a document with a level-1 header "Monthly Analytics Report" followed by three sections (level-2 headers): "Summary", "Data", and "Conclusion". Each section should contain a placeholder that will be filled later.
After creating the structure, populate the three section placeholders in reverse order (Conclusion, then Data, then Summary).
@generates
def generate_report(output_filename: str) -> str:
"""
Generates a monthly analytics report with non-sequential content filling.
Creates a structured Markdown document with predefined sections,
then populates them in a non-linear fashion using placeholder mechanisms.
Args:
output_filename: Name of the output Markdown file (without .md extension)
Returns:
The complete Markdown content as a string
"""
passProvides Markdown generation capabilities with support for non-linear document construction.
@satisfied-by