Skip to content

Commit 0047fb4

Browse files
author
Waylan Limberg
committed
Fixed Python-Markdown#60. When we updated codehilite, we forgot to update fenced_codee to work with it.
1 parent 4cff7fe commit 0047fb4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

markdown/extensions/fenced_code.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ def run(self, lines):
130130
# is enabled, so we call it to highlite the code
131131
if self.codehilite_conf:
132132
highliter = CodeHilite(m.group('code'),
133-
linenos=self.codehilite_conf['force_linenos'],
134-
guess_lang=self.codehilite_conf['guess_lang'],
135-
css_class=self.codehilite_conf['css_class'],
136-
style=self.codehilite_conf['pygments_style'],
133+
linenos=self.codehilite_conf['force_linenos'][0],
134+
guess_lang=self.codehilite_conf['guess_lang'][0],
135+
css_class=self.codehilite_conf['css_class'][0],
136+
style=self.codehilite_conf['pygments_style'][0],
137137
lang=(m.group('lang') or None),
138-
noclasses=self.codehilite_conf['noclasses'])
138+
noclasses=self.codehilite_conf['noclasses'][0])
139139

140140
code = highliter.hilite()
141141
else:

0 commit comments

Comments
 (0)