Skip to content

perf(markdown): cache conversion patterns and index task lines - #354

Merged
PathGao merged 1 commit into
sftwrdotdev:stack-test/320-checkboxfrom
PathGao:perf/markdown-conversion-hot-path
Aug 2, 2026
Merged

perf(markdown): cache conversion patterns and index task lines#354
PathGao merged 1 commit into
sftwrdotdev:stack-test/320-checkboxfrom
PathGao:perf/markdown-conversion-hot-path

Conversation

@PathGao

@PathGao PathGao commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Cache Markdown conversion regular expressions with LazyLock.
  • Index Markdown source lines once before annotating task checkboxes.
  • Add a 64-item nested and quoted task-list regression test.

Dependency

Depends on #345 because it optimizes the task-checkbox annotation protocol introduced there. It is intentionally separate from the preview-width, display-math, and checkbox-persistence portions of the current Stack.

Validation

  • npm ci
  • npm run check
  • npm test (151 passing)

@PathGao
PathGao merged commit 5171171 into sftwrdotdev:stack-test/320-checkbox Aug 2, 2026
5 checks passed
@PathGao
PathGao deleted the perf/markdown-conversion-hot-path branch August 2, 2026 16:05
PathGao added a commit that referenced this pull request Aug 2, 2026
* fix: enable preview task checkboxes

* perf(markdown): reuse conversion patterns and index task lines (#354)

Co-authored-by: PathGao <gaoyanbo@gaoyanbodeMacBook-Air.local>

---------

Co-authored-by: PathGao <gaoyanbo@gaoyanbodeMacBook-Air.local>
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.

1 participant