diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-12-28 11:20:22 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-12-28 11:20:22 -0500 |
commit | 0047fb45198d9123b0a7884326a881d42b0a5b5a (patch) | |
tree | 6d86276ef14572dc22920a8ad7152ac1c95bfd77 | |
parent | 4cff7fe3028722323912d4bcc206e020420d8e18 (diff) | |
download | markdown-0047fb45198d9123b0a7884326a881d42b0a5b5a.tar.gz markdown-0047fb45198d9123b0a7884326a881d42b0a5b5a.tar.bz2 markdown-0047fb45198d9123b0a7884326a881d42b0a5b5a.zip |
Fixed #60. When we updated codehilite, we forgot to update fenced_codee to work with it.
-rw-r--r-- | markdown/extensions/fenced_code.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/markdown/extensions/fenced_code.py b/markdown/extensions/fenced_code.py index 5a50ba3..0534251 100644 --- a/markdown/extensions/fenced_code.py +++ b/markdown/extensions/fenced_code.py @@ -130,12 +130,12 @@ class FencedBlockPreprocessor(markdown.preprocessors.Preprocessor): # 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: |