"vscode:/vscode.git/clone" did not exist on "b97a64ed7fcfebea7c4ac3f555f8a4b5c267a74f"
Unverified Commit 98adcbb9 authored by Xiaomeng Zhao's avatar Xiaomeng Zhao Committed by GitHub
Browse files

Merge pull request #1823 from myhloli/dev

refactor(pre_proc): allow interline equations to be associated with text blocks
parents a01bd7ed 083b787c
...@@ -64,7 +64,7 @@ def span_block_type_compatible(span_type, block_type): ...@@ -64,7 +64,7 @@ def span_block_type_compatible(span_type, block_type):
if span_type in [ContentType.Text, ContentType.InlineEquation]: if span_type in [ContentType.Text, ContentType.InlineEquation]:
return block_type in [BlockType.Text, BlockType.Title, BlockType.ImageCaption, BlockType.ImageFootnote, BlockType.TableCaption, BlockType.TableFootnote] return block_type in [BlockType.Text, BlockType.Title, BlockType.ImageCaption, BlockType.ImageFootnote, BlockType.TableCaption, BlockType.TableFootnote]
elif span_type == ContentType.InterlineEquation: elif span_type == ContentType.InterlineEquation:
return block_type in [BlockType.InterlineEquation] return block_type in [BlockType.InterlineEquation, BlockType.Text]
elif span_type == ContentType.Image: elif span_type == ContentType.Image:
return block_type in [BlockType.ImageBody] return block_type in [BlockType.ImageBody]
elif span_type == ContentType.Table: elif span_type == ContentType.Table:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment