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