Skip to content

Conversation

@shun-dong
Copy link

Changes

  • Add hideMarkers setting.
  • Add updateDynamicCSS() to build full‑scope selectors for each marker in hideMarkers.
  • Apply dynamic CSS to:
    • Preview mode — ensure all configured markers are hidden/unhidden as expected.
    • Edit mode — hide both the checkbox and task text for matching markers.
  • Remove duplicated static CSS to prevent scope mismatch and toggle issues.
  • Ensure consistent behavior between preview and edit views.
  • Change README.md to describe feature above.

Tests

  • Plugin loads without errors ✅ 2025-11-06
  • Ribbon button appears and works ✅ 2025-11-06
  • Command palette command works ✅ 2025-11-06
  • Status bar updates correctly ✅ 2025-11-06
  • State persists after restart ✅ 2025-11-06
  • No console errors ✅ 2025-11-06
  • Works in Reading mode ✅ 2025-11-06
  • Works in Edit/Live Preview mode ✅ 2025-11-06
  • Custom task statuses still visible (for task status changes) ✅ 2025-11-06

- Add hide markers setting.
- Replace hardcoded task state selectors ([x], [X]) with CSS rules generated dynamically from the hideMarkers setting.
- Ensure consistent behavior in both preview (reading view) and edit modes
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