Skip to content

Strip all Logseq macros from blocks before indexing#34

Merged
twaugh merged 1 commit intomainfrom
strip-macros
Mar 18, 2026
Merged

Strip all Logseq macros from blocks before indexing#34
twaugh merged 1 commit intomainfrom
strip-macros

Conversation

@twaugh
Copy link
Copy Markdown
Owner

@twaugh twaugh commented Mar 18, 2026

Summary

  • Generalize the {{embed ...}} regex in normalizeContent to strip all {{...}} macros (e.g. {{query ...}}, {{renderer ...}}, {{cloze ...}}) from block content before indexing
  • Add test cases for {{query ...}} and {{renderer ...}}

Test plan

  • Existing tests pass
  • New test cases for {{query ...}} and {{renderer ...}} macros

🤖 Generated with Claude Code

Generalize the embed-only macro regex to strip all Logseq macros
(query, renderer, cloze, etc.) from block content during normalization.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@twaugh twaugh merged commit 1f14a89 into main Mar 18, 2026
1 check passed
@twaugh twaugh deleted the strip-macros branch March 18, 2026 13:59
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