Skip to content

fix: prevent infinite loop when mq query output contains nested mq block - #2

Merged
harehare merged 1 commit into
mainfrom
fix/nested-mq-code-block-loop
Sep 24, 2026
Merged

harehare merged 1 commit into
mainfrom
fix/nested-mq-code-block-loop

Conversation

@harehare

Copy link
Copy Markdown
Owner

A query using .code can echo an ```mq fence back into its own result. Obsidian renders that fence like a real code block and re-executes it, which can recurse without end. Skip execution for mq blocks rendered inside another block's result and show the source statically instead.

A query using `.code` can echo an ```mq fence back into its own result.
Obsidian renders that fence like a real code block and re-executes it,
which can recurse without end. Skip execution for mq blocks rendered
inside another block's result and show the source statically instead.
@harehare
harehare merged commit ed42938 into main Sep 24, 2026
1 check passed
@harehare
harehare deleted the fix/nested-mq-code-block-loop branch September 24, 2026 00:35
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