Skip to content

Commit 802af99

Browse files
committed
Fix error
1 parent addee97 commit 802af99

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

html_attribute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ class SafeRawHtmlPostprocessor(postprocessors.Postprocessor):
130130
HTML_TAG_RE = re.compile(r'^\<\/?([a-zA-Z0-9]+)[^\>]*\>$')
131131

132132
def run(self, text):
133-
for i in range(self.markdown.htmlStash.html_counter):
134-
html = self.markdown.htmlStash.rawHtmlBlocks[i]
133+
for i in range(self.md.htmlStash.html_counter):
134+
html = self.md.htmlStash.rawHtmlBlocks[i]
135135
# if not safe:
136136
# html = self.escape(html)
137-
text = text.replace(self.markdown.htmlStash.get_placeholder(i), html)
137+
text = text.replace(self.md.htmlStash.get_placeholder(i), html)
138138
return text
139139

140140
def escape(self, html):

0 commit comments

Comments
 (0)