mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
🎨 优化to_markdown
换行
This commit is contained in:
parent
d00a569c59
commit
617c900123
@ -203,7 +203,8 @@ async def to_markdown(message: List[Message]) -> str:
|
||||
elif m.type == 'image_size':
|
||||
size = m.data
|
||||
elif m.type == 'text':
|
||||
_markdown_list.append(m.data)
|
||||
assert isinstance(m.data, str)
|
||||
_markdown_list.append(m.data.replace('\n', '\n\n'))
|
||||
|
||||
if url is not None and size is not None:
|
||||
_markdown_list.append(f'![test #{size[0]}px #{size[1]}px]({url})')
|
||||
|
Loading…
x
Reference in New Issue
Block a user