From ab7e60b397e5c213e00e85cb942c559deb6cd76c Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Tue, 16 Jul 2024 00:16:30 +0200 Subject: renamed elements so they don't share the name with their extension --- strikethrough.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'strikethrough.py') diff --git a/strikethrough.py b/strikethrough.py index d0342fc..9272898 100644 --- a/strikethrough.py +++ b/strikethrough.py @@ -8,17 +8,17 @@ from marko import inline from marko.helpers import MarkoExtension -class StrikeThrough(inline.InlineElement): +class StrikeThroughElement(inline.InlineElement): pattern = '~~(.+)~~' parse_children = True class StrikeThroughRenderer: - def render_strike_through(self, element): + def render_strike_through_element(self, element): return f"{self.render_children(element)}" StrikeThrough = MarkoExtension( - elements=[StrikeThrough], + elements=[StrikeThroughElement], renderer_mixins=[StrikeThroughRenderer] ) -- cgit v1.2.3-70-g09d2