middleman / middleman-syntax

Code syntax highlighting plugin via Rouge for Middleman
https://middlemanapp.com
MIT License
179 stars 57 forks source link

Unable to get line numbers working #12

Closed tonyarnold closed 11 years ago

tonyarnold commented 11 years ago

I'm not quite sure what I'm doing wrong. I've included 'middleman-syntax' and 'redcarpet' as dependencies in my Gemfile, and added the following to my config.rb:

set :markdown_engine, :redcarpet
set :markdown, 
    :fenced_code_blocks => true, 
    :smartypants => true

activate :syntax, 
         :linenos => 'inline', 
         :lineanchors => true

But line numbers are not emitted into the output code, and no errors are shown. Am I doing something obviously wrong?

bhollis commented 11 years ago

That's because passing options to pygments only works on the master branch. I'll cut a gem release.

bhollis commented 11 years ago

OK, try out version 1.1.0 and let me know how it works.

tonyarnold commented 11 years ago

Works a treat! Thanks for the quick fix!