Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #60. When we updated codehilite, we forgot to update fenced_cod…

…ee to work with it.
  • Loading branch information...
commit 0047fb45198d9123b0a7884326a881d42b0a5b5a 1 parent 4cff7fe
@waylan authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 markdown/extensions/fenced_code.py
View
10 markdown/extensions/fenced_code.py
@@ -130,12 +130,12 @@ def run(self, lines):
# is enabled, so we call it to highlite the code
if self.codehilite_conf:
highliter = CodeHilite(m.group('code'),
- linenos=self.codehilite_conf['force_linenos'],
- guess_lang=self.codehilite_conf['guess_lang'],
- css_class=self.codehilite_conf['css_class'],
- style=self.codehilite_conf['pygments_style'],
+ linenos=self.codehilite_conf['force_linenos'][0],
+ guess_lang=self.codehilite_conf['guess_lang'][0],
+ css_class=self.codehilite_conf['css_class'][0],
+ style=self.codehilite_conf['pygments_style'][0],
lang=(m.group('lang') or None),
- noclasses=self.codehilite_conf['noclasses'])
+ noclasses=self.codehilite_conf['noclasses'][0])
code = highliter.hilite()
else:
Please sign in to comment.
Something went wrong with that request. Please try again.