in function_app/src/helpers/content_understanding.py [0:0]
2 lines of code
2 McCabe index (conditional complexity)
def apply_md_text_formatting(text: str, bold: bool) -> str:
"""Applies Markdown formatting to a given string"""
return "**{}**".format(text) if bold else text