Styling hardcoded <div> around CodeRay code table #76
I’m trying to style a CodeRay code table (
to the element containing the code table. As can bee seen at https://github.com/gettalong/kramdown/blob/master/lib/kramdown/converter/html.rb#L109 this is sadly a hardcoded
<div><table class="CodeRay"><tr> <td class="line-numbers"><pre><a href="#n1" name="n1">1</a> <a href="#n2" name="n2">2</a> <a href="#n3" name="n3">3</a> <a href="#n4" name="n4">4</a> <a href="#n5" name="n5">5</a> </pre></td> <td class="code"><pre><span class="comment"># foo.rb</span> <span class="keyword">def</span> <span class="function">foo</span> puts <span class="string"><span class="delimiter">"</span><span class="content">Hi</span><span class="delimiter">"</span></span> jkdhg dkjghd kjhdfg kjhdfg dkjfghdgh dfhgdkghdg dkjdjg(gdg) jsdhfs ksjdfhsjfs kjjjj skdjf <span class="keyword">end</span> </pre></td> </tr></table> </div>
A workaround is setting
Suggestion: Add a new option
The text was updated successfully, but these errors were encountered:
@gettalong can you please reconsider this?
In my opinion, it makes little sense to offer an "anonymous" wrapper. Because without a proper hook, authors have to wrap their code blocks inside an extra
I was expecting to find the class
…class value (fixes #76).