ddfreyne/nanoc — Issue #83: ColorizeSyntax filter removing code
Author: jonforums
Created: 2012-01-13 15:51:09+00:00
State: open

Similar to #71 (can't reopen the issue) I'm seeing a problem in which highlighted code is being removed by the filter.

I'm emulating the following Rules snippet using this test code https://gist.github.com/1602575

compile '/posts/*/' do
filter :rdiscount
filter :colorize_syntax,
:coderay => { :line_numbers => :table }
layout 'post'
filter :erubis
layout 'default'
filter :erubis
end

From the results, it appears the real problem may be with Nokogiri chopping and mangling the contents of the `

` fragment. I see this behavior when testing the gist on both Win7 32bit and Arch Linux 3.1.8.

I'm very new to Nanoc so it's not clear whether this is my issue or a real issue. Can anyone reproduce?