Skip to content

Commit 2346ddf

Browse files
Update convert_to_md.py
1 parent e0d116b commit 2346ddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

misc/book/convert_to_md.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
continue
2626
if string.startswith('# `') and string.endswith('`\n'):
2727
if code:
28-
text = text + '\n ``` \n' + string.replace('# `', '_').replace('`', '_ \n')
28+
text = (text + '\n ``` \n'
29+
+ string.replace('# `', '_').replace('`', '_ \n'))
2930
else:
3031
text = text + string.replace('# `', '_').replace('`', '_ \n')
3132
code = False

0 commit comments

Comments
 (0)