mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-08-01 22:59:53 +00:00
修复已知bug
This commit is contained in:
@ -37,7 +37,7 @@ https://github.com/LiteyukiStudio/marshoai-melo"""
|
||||
|
||||
# 正则匹配代码块
|
||||
CODE_BLOCK_PATTERN = re.compile(
|
||||
r"```(.*?)```|`(.*?)`",
|
||||
r"```(.*?)```|`(.*?)`", re.DOTALL
|
||||
)
|
||||
# 正则匹配完整图片标签字段
|
||||
IMG_TAG_PATTERN = re.compile(r"!\[[^\]]*\]\([^()]*\)")
|
||||
@ -47,5 +47,5 @@ IMG_TAG_PATTERN = re.compile(r"!\[[^\]]*\]\([^()]*\)")
|
||||
# INTAG_TEXT_PATTERN = re.compile(r'!\[([^\]]*)\]')
|
||||
# 正则匹配 LaTeX 公式内容
|
||||
LATEX_PATTERN = re.compile(
|
||||
r"\\begin\{equation\}(.*?)\\\end\{equation\}|(?<!\$)(\$(.*?)\$|\$\$(.*?)\$\$|\\\[(.*?)\\\]|\\\[.*?\\\]|\\\((.*?)\\\))",
|
||||
r"\\begin\{equation\}(.*?)\\end\{equation\}|(?<!\$)(\$(.*?)\$|\$\$(.*?)\$\$|\\\[(.*?)\\\]|\\\[.*?\\\]|\\\((.*?)\\\))",
|
||||
)
|
||||
|
Reference in New Issue
Block a user