Open Flrande opened 1 month ago
Hey @Flrande, I believe storing the ruleStack in a state and passing it to the tokenizer could be a viable solution within our current setup. However, it appears that Shiki doesn't currently support that functionality.
PS: Apologies for the premature closure; my phone glitched.
For the following code, the code block highlighting is not as expected.
The possible reason is that now each delta in the code block is parsed separately. We need to parse them together while maintaining lazy loading for syntax highlighting.
https://github.com/toeverything/blocksuite/blob/55a47205d14ec4fe082ea3a913fe9ae0dff793a4/packages/blocks/src/code-block/affine-code-line.ts#L50-L54