diff --git a/rich/default_styles.py b/rich/default_styles.py index 46fe41c7..ad72fff5 100644 --- a/rich/default_styles.py +++ b/rich/default_styles.py @@ -159,6 +159,7 @@ DEFAULT_STYLES: Dict[str, Style] = { "markdown.h7": Style(italic=True, dim=True), "markdown.link": Style(color="bright_blue"), "markdown.link_url": Style(color="blue", underline=True), + "markdown.s": Style(strike=True), "iso8601.date": Style(color="blue"), "iso8601.time": Style(color="magenta"), "iso8601.timezone": Style(color="yellow"), diff --git a/rich/markdown.py b/rich/markdown.py index 246a2e10..ff62899e 100644 --- a/rich/markdown.py +++ b/rich/markdown.py @@ -428,7 +428,7 @@ class Markdown(JupyterMixin): "image": ImageItem, } - inlines = {"em", "strong", "code", "strike"} + inlines = {"em", "strong", "code", "s"} def __init__( self, @@ -440,7 +440,7 @@ class Markdown(JupyterMixin): inline_code_lexer: Optional[str] = None, inline_code_theme: Optional[str] = None, ) -> None: - parser = MarkdownIt().enable("table") + parser = MarkdownIt().enable("strikethrough") self.markup = markup self.parsed = parser.parse(markup) self.code_theme = code_theme diff --git a/tools/README.md b/tools/README.md index e6d69030..125693fb 100644 --- a/tools/README.md +++ b/tools/README.md @@ -1,3 +1,5 @@ # Tools These are scripts used in the development of Rich, and aren't for general use. But feel free to look around. + +Some ~~strikethrough~~ text.