CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-mdutils

A comprehensive Python library for programmatically creating and manipulating Markdown files with support for headers, tables, lists, images, links, and text formatting.

80

1.90x
Overview
Eval results
Files

task.mdevals/scenario-6/

Task List Generator

Build a Python program that generates a markdown file containing hierarchical task lists.

Requirements

Your program should create a markdown file named tasks.md that contains:

  1. A level 1 header with the text "Project Tasks"
  2. A level 2 header with the text "Completed Tasks" followed by a nested unordered list with the following structure:
    • "Backend Development" (parent item)
      • "API endpoints" (child item)
      • "Database setup" (child item)
    • "Frontend Development" (parent item)
      • "Login page" (child item)
  3. A level 2 header with the text "Pending Tasks" followed by a flat (non-nested) unordered list containing:
    • "Code review"
    • "Testing"

Use the default marker for all list items.

Implementation

@generates

API

def generate_task_list():
    """
    Generates a markdown file with hierarchical task lists.

    Creates a file named 'tasks.md' containing task lists with both
    nested and flat unordered list structures.

    Returns:
        None
    """
    pass

Test Cases

  • The generated file contains the level 1 header "Project Tasks" @test
  • The generated file contains nested list items under "Completed Tasks" with correct structure @test
  • The generated file contains flat list items under "Pending Tasks" @test

Dependencies { .dependencies }

mdutils { .dependency }

Provides markdown file generation support.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-mdutils

tile.json