Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Sep 22, 2024
1 parent 1aee845 commit 669388e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/md2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ def replace_strong(str):
strong_flag = True
for i in range(len(str)):
if str[i] == '`' and strong_flag:
str[:i] + '<strong>' + str[i:]
str = str[:i] + '<strong>' + str[i:]
strong_flag = False
elif str[i] == '`' and not strong_flag:
str[:i] + '</strong>' + str[i:]
str = str[:i] + '</strong>' + str[i:]
strong_flag = True
return str

Expand Down

0 comments on commit 669388e

Please sign in to comment.