Skip to content

refactor(tag-util): harden mention parsing and exclude non-actionable markdown contexts#5

Merged
heoh merged 3 commits intomainfrom
gh-3
Feb 24, 2026
Merged

refactor(tag-util): harden mention parsing and exclude non-actionable markdown contexts#5
heoh merged 3 commits intomainfrom
gh-3

Conversation

@heoh
Copy link
Owner

@heoh heoh commented Feb 24, 2026

resolves #3

Summary

This PR improves VC parsing reliability and removes noisy mention extraction.

Changes

  • Added masking for non-actionable Markdown regions:
    • fenced code blocks
    • inline code
    • blockquote lines
  • Applied masking to both title and body.
  • Added safe handling for malformed/incomplete Markdown (no throw fallback).
  • Refactored mention parsing to use normal-text context only:
    • header mentions (###### authored by ...) are excluded from mentions
    • command-line mentions (/assign ...) are excluded from mentions
  • Deduplicated mentions while preserving first-seen order.
  • Updated tests to assert exact ordered output directly (without sort helpers).

@heoh heoh added the bug Something isn't working label Feb 24, 2026
@heoh heoh merged commit aecf991 into main Feb 24, 2026
@heoh heoh deleted the gh-3 branch February 24, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Ignore VC mentions/commands inside code blocks and quotes

1 participant