Update CrossDown.py

This commit is contained in:
跨越晨昏 2024-08-30 14:53:40 +08:00 committed by GitHub
parent dbfd5bb004
commit 79bd36867f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,9 @@ class CodeBlock:
self.codes[index] = code # 给变量赋值 self.codes[index] = code # 给变量赋值
if re.search(r'\n', code): # 是多行代码 if re.search(r'\n', code): # 是多行代码
head = re.findall(r'(.*?)\n', code)[0] head = re.findall(r'(.*?)\n', code)[0]
if head == 'python': if head in ('', 'yaml'):
pass
elif head == 'python':
pass pass
elif head == 'shell': elif head == 'shell':
pass pass