Rouge support will not accept custom formatter #214
Syntax highlighting using Rouge has
For example, *This is in bold.* is transformed into para(strong("This is in bold.")). Rouge may determine it is a literal string and return, say, a color of value #336633, which would in turn be translated into para(strong("This is in bold."), :stroke => "#336633").
The current solution involves copying the code from Kramdown::Converter::SyntaxHighlighter::Rouge.call and replace the formatter with my custom formatter.
The text was updated successfully, but these errors were encountered:
So what you are saying is that you want a key like
formatter = (opts.delete(:formatter) || ::Rouge::Formatters::HTML).new(opts)
… formatter class, fixes #214