notion-syntax-highlighter
notion-syntax-highlighter copied to clipboard
Performance issues when editing large code blocks
When you haven't reached the threshold for disabling syntax highlighting but still working with a very large code snippet, writing code inside a code block can become sluggish. This is an inherent issue with Notion's code blocks.
I will explore ways to improve performance by identifying the differences between the previous and new code blocks and implementing granular HTML editing.
Maybe use something lighter than highlightjs - check carbon code