Enter a style context.
(self, style_name: str | Style)
| 499 | self.stack.top.on_text(self, text) |
| 500 | |
| 501 | def enter_style(self, style_name: str | Style) -> Style: |
| 502 | """Enter a style context.""" |
| 503 | style = self.console.get_style(style_name, default="none") |
| 504 | self.style_stack.push(style) |
| 505 | return self.current_style |
| 506 | |
| 507 | def leave_style(self) -> Style: |
| 508 | """Leave a style context.""" |
no test coverage detected