Method: rich.markdown.MarkdownContext.enter_style
Calls: 96, Exceptions: 0, Paths: 1Back
Path 1: 96 calls (1.0)
'markdown.paragraph' (39) 'markdown.item' (17) 'markdown.code_block' (8) 'markdown.emph' (4) 'markdown.strong' (4) 'markdown.code' (4) 'markdown.h1' (...
Style (96)
1def enter_style(self, style_name: Union[str, Style]) -> Style:
2 """Enter a style context."""
3 style = self.console.get_style(style_name, default="none")
4 self.style_stack.push(style)
5 return self.current_style