Skip to content

Commit 50b4640

Browse files
committed
better naming for markup variables
1 parent 7861b33 commit 50b4640

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

markdownify/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ def abstract_inline_conversion(markup_fn):
4848
references to self.strong_em_symbol etc.
4949
"""
5050
def implementation(self, el, text, convert_as_inline):
51-
markup = markup_fn(self)
52-
if markup.startswith('<') and markup.endswith('>'):
53-
markup_after = '</' + markup[1:]
51+
markup_prefix = markup_fn(self)
52+
if markup_prefix.startswith('<') and markup_prefix.endswith('>'):
53+
markup_suffix = '</' + markup_prefix[1:]
5454
else:
55-
markup_after = markup
55+
markup_suffix = markup_prefix
5656
if el.find_parent(['pre', 'code', 'kbd', 'samp']):
5757
return text
5858
prefix, suffix, text = chomp(text)
5959
if not text:
6060
return ''
61-
return '%s%s%s%s%s' % (prefix, markup, text, markup_after, suffix)
61+
return '%s%s%s%s%s' % (prefix, markup_prefix, text, markup_suffix, suffix)
6262
return implementation
6363

6464

0 commit comments

Comments
 (0)