Skip to content

Fix UI lag: revert markdown lexer to 0208d7a (Issue #1314)#1329

Open
4d30 wants to merge 1 commit intomartanne:masterfrom
4d30:fix-ui-lag-in-md
Open

Fix UI lag: revert markdown lexer to 0208d7a (Issue #1314)#1329
4d30 wants to merge 1 commit intomartanne:masterfrom
4d30:fix-ui-lag-in-md

Conversation

@4d30
Copy link
Copy Markdown

@4d30 4d30 commented Apr 3, 2026

Title

Fix UI lag in markdown lexer by reverting to 0208d7a (Fixes #1314)

Description

Upon investigation, it was determined that changes made to the markdown lexer /lua/lexers/markdown.lua after commit 0208d7a introduced nested loops during the highlighting process. This increased lexing complexity, causing the UI thread to hang or stutter when scrolling through or editing markdown files.

Proposed Change

  • Revert lua/lexers/markdown.lua to 0208d7a

@4d30 4d30 marked this pull request as ready for review April 3, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

100% cpu spikes and slow response with md syntax on

1 participant