Update CrossDown.py
This commit is contained in:
parent
dbfd5bb004
commit
79bd36867f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user