Skip to content

Commit

Permalink
Update lib/markdown2.py
Browse files Browse the repository at this point in the history
to avoid javascript fenced code block parsing error, do fenced code blocks before hash html blocks
  • Loading branch information
microjo committed Jan 25, 2013
1 parent e444efd commit efc9d7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/markdown2.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ def convert(self, text):

text = self.preprocess(text)

if "fenced-code-blocks" in self.extras:
text = self._do_fenced_code_blocks(text)

if self.safe_mode:
text = self._hash_html_spans(text)

Expand Down

0 comments on commit efc9d7d

Please sign in to comment.