Skip to content

Commit

Permalink
Fix 'class_format' -> 'class' in HTMLLinewise opts
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk authored May 13, 2018
1 parent a58789a commit f976f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -43,9 +43,9 @@ Builtin formatters include:
* `Rouge::Formatters::HTMLInline.new(theme)` - will render your code with no class names, but
instead inline the styling options into the `style=` attribute. This is good for emails and
other systems where CSS support is minimal.
* `Rouge::Formatters::HTMLLinewise.new(formatter, class_format: 'line-%i')`
* `Rouge::Formatters::HTMLLinewise.new(formatter, class: 'line-%i')`
This formatter will split your code into lines, each contained in its own div. The
`class_format` option will be used to add a class name to the div, given the line
`class` option will be used to add a class name to the div, given the line
number.
* `Rouge::Formatters::HTMLPygments.new(formatter, css_class='codehilite')`
wraps the given formatter with div wrappers generally expected by stylesheets designed for

0 comments on commit f976f6d

Please sign in to comment.