selamw commited on
Commit
4b81708
·
verified ·
1 Parent(s): e9c8efa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,8 @@ def convert_to_markdown(input_text):
32
 
33
  # Bold the keywords
34
  for word in bold_words:
35
- content = content.replace(word, f'\n**{word}\n')
 
36
 
37
  # Construct the Markdown output with headings
38
  formatted_output = f"** {title} **\n{content}"
 
32
 
33
  # Bold the keywords
34
  for word in bold_words:
35
+ content = content.replace(word, f'\n**{word}**\n')
36
+ content = content.replace(f' ** ', f' ')
37
 
38
  # Construct the Markdown output with headings
39
  formatted_output = f"** {title} **\n{content}"