async def test_settings_update(self):
        """Test that filter settings can be updated at runtime."""
        filter = MarkdownTextFilter()

        # Initial state - formatting should be removed
        input_text = "**bold** and *italic*"
        self.assertEqual(await filter.filter(input_text), "bold and italic")

        # Disable text filtering
        await filter.update_settings({"enable_text_filter": False})
        self.assertEqual(
            await filter.filter(input_text), input_text, "Text filtering should be disabled"
        )

        # Re-enable text filtering
        await filter.update_settings({"enable_text_filter": True})
        self.assertEqual(
            await filter.filter(input_text),
            "bold and italic",
            "Text filtering should be re-enabled",
        )
Test that filter settings can be updated at runtime.
tests/test_markdown_text_filter.py