Revert "适配markdown 换行"

This reverts commit 7e75b6e7ab.

回滚
This commit is contained in:
w_xiaolizu
2023-05-29 12:18:59 +08:00
parent 36c1cefb9a
commit 2b28f29681

View File

@ -368,8 +368,7 @@ def format_io(self, y):
if y is None or y == []:
return []
i_ask, gpt_reply = y[-1]
#i_ask = text_divide_paragraph(i_ask) # 输入部分太自由,预处理一波
i_ask = re.sub(r'\n+', '\n\n', i_ask)
# i_ask = text_divide_paragraph(i_ask) # 输入部分太自由,预处理一波
gpt_reply = close_up_code_segment_during_stream(gpt_reply) # 当代码输出半截的时候,试着补上后个```
y[-1] = (
# None if i_ask is None else markdown.markdown(i_ask, extensions=['fenced_code', 'tables']),