Markdown prefix based on indent for bullet points >>> md_prefix(0) '\\n##' >>> md_prefix(1) ' *' >>> md_prefix(2) ' *' >>> md_prefix(3) ' *'
(indent: int)
| 19 | |
| 20 | |
| 21 | def md_prefix(indent: int) -> str: |
| 22 | """ |
| 23 | Markdown prefix based on indent for bullet points |
| 24 | |
| 25 | >>> md_prefix(0) |
| 26 | '\\n##' |
| 27 | >>> md_prefix(1) |
| 28 | ' *' |
| 29 | >>> md_prefix(2) |
| 30 | ' *' |
| 31 | >>> md_prefix(3) |
| 32 | ' *' |
| 33 | """ |
| 34 | return f"{indent * ' '}*" if indent else "\n##" |
| 35 | |
| 36 | |
| 37 | def print_path(old_path: str, new_path: str) -> str: |
no outgoing calls
no test coverage detected