 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Thomas Leitner
RE: Specify coderay options inline? [ reply ] 2012-11-30 22:26
|
There is no way to do this with kramdown because parsing the text and converting it into HTML is not done at the same time (parsing is done once, converting the parse tree to an output format can be done more than once).
Since coderay is used in the HTML converter and not in the parser, only the last set coderay options will be used.
|
By: Mike Hall
Specify coderay options inline? [ reply ] 2012-11-30 21:41
|
I'd like to be able to specify certain coderay options inline. Is there any way to do that?
Specifically, I'd like some code blocks in my project to have line numbering, but others to not. I experimented with a number of permutations on "{::options coderay-line-numbers=nil /}" and didn't meet with any success.
Thanks,
Michael
|
|
 |