lib/nanodoc/filters/literate_pyg.rb
# Render a line of code to HTML, using CSS classes from Pygments.
Render a line of code to HTML, using CSS classes from Pygments.
Render a line of code to HTML using CSS classes from Pygments .
def render_code_line
    @line = @indent << @line_tokens.map! do |text, css_class|
      if css_class
        "<span class=\"#{css_class}\">#{h(text)}</span>"
      else
        h(text)
      end
    end.join
  end
def render_code_line @line = @indent << @line_tokens . map! do | text , css_class | if css_class "<span class=\"#{css_class}\">#{h(text)}</span>" else h ( text ) end end . join end
Render a line of code to HTML, using CSS classes from Pygments.
Render a line of code to HTML using CSS classes from Pygments .