async def test_feature_toggles(self):
        """Test enabling/disabling specific filter features."""
        # Create a filter with all features disabled
        filter = MarkdownTextFilter(
            params=MarkdownTextFilter.InputParams(
                enable_text_filter=False,
                filter_code=False,
                filter_tables=False,
            )
        )

        # Test with text filtering disabled
        text_with_markdown = "**bold** and *italic* with `code`"
        self.assertEqual(
            await filter.filter(text_with_markdown),
            text_with_markdown,
            "Disabled filter should not modify text",
        )

        # Enable just text filtering
        await filter.update_settings({"enable_text_filter": True})
        self.assertEqual(
            await filter.filter(text_with_markdown),
            "bold and italic with code",
            "Enabled filter should remove markdown",
        )
Test enabling/disabling specific filter features.
tests/test_markdown_text_filter.py