walle / gimli

Utility for converting markup files to pdf files
https://github.com/walle/gimli
MIT License
538 stars 44 forks source link

Code snippets inside lists are not rendered properly #84

Open NAR opened 7 years ago

NAR commented 7 years ago

Hello!

I have this minimal example (sorry, can't write markdown example properly here): minimal2

The first code snippet is rendered nicely, but the second one is not (see also the attached PDF output). minimal2_pdf

The problem seems to be with the generated HTML. The output from -debug option:

"/usr/local/bin/wkhtmltopdf"  -q - "/tmp/gimli/minimal2.pdf"
<table class="CodeRay"><tr>
  <td class="line-numbers"><pre><a href="#n1" name="n1" id="n1">1</a>
<a href="#n2" name="n2" id="n2">2</a>
<a href="#n3" name="n3" id="n3">3</a>
</pre></td>
  <td class="code"><pre>{set, appl, param,
 [{host, "localhost"},
  {port, 8125}]}.</pre></td>
</tr></table>

<ul>
<li><p><code>appl/param</code>: Configures the connection to a remote server.</p>

<p>Next paragraph.</p>

<p>Example:</p>

<p><code>erlang
{set, appl, param,
 [{host, "localhost"},
  {port, 8125}]}.
</code></p></li>
</ul>

Do you know why?

minimal2.pdf