You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Changing the integer in the define in kramdown's options.rb to an Object makes it work
define(:coderay_bold_every, Object, 10, <<EOF) do |val|
Defines how often a line number should be made bold
Default: 10
Used by: HTML converter
EOF
val
end
This obviously uses a block that doesn't do any validation. I'm not fully proficient in Ruby, so I don't really know which kind of validation one should do.
I guess a check on val == false and Integer === val should be enough?
Coderay's
coderay_bold_every
can be set to false or to an integer, see CodeRay's numbering.rb (line 35).But because the type is set to Integer in kramdown's options.rb (line 326) it's not possible to set it to false.
The text was updated successfully, but these errors were encountered: