Add 'only_markdown' parameter to emphasize_header call in utils.py for security concerns section

This commit is contained in:
mrT23 2024-08-14 14:02:09 +03:00
parent f4b06640d2
commit bae8d36698
No known key found for this signature in database
GPG key ID: D350490E39D5F5AD

View file

@ -175,7 +175,7 @@ def convert_to_markdown_v2(output_data: dict,
markdown_text += f'### {emoji} No security concerns identified\n\n' markdown_text += f'### {emoji} No security concerns identified\n\n'
else: else:
markdown_text += f"### {emoji} Security concerns\n\n" markdown_text += f"### {emoji} Security concerns\n\n"
value = emphasize_header(value.strip()) value = emphasize_header(value.strip(), only_markdown=True)
markdown_text += f"{value}\n\n" markdown_text += f"{value}\n\n"
elif 'can be split' in key_nice.lower(): elif 'can be split' in key_nice.lower():
if gfm_supported: if gfm_supported: