title: How to use Pygments in Pelican with Markdown?
body: <p>TLDR: I am trying to do CSS line numbering in pelican, while writing in markdown. Pygments is used indirectly and you can't pass options to it, so I can't separate the lines and there is no CSS selector for "new line".</p>
  
  <p>Using Markdown in Pelican, I can generate code blocks using the CodeHilite extension. Pelican doesn't support using pygments directly if you are using Markdown...only RST(and ... no to converting everything to RST).</p>
  
  <p>So, what I have tried:</p>
  
  <pre><code>MD_EXTENSIONS = [
  'codehilite(css_class=highlight,linenums=False,guess_lang=True,use_pygments=True)',
  'extra']
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>:::python
  &lt;div class="line"&gt;import __main__ as main&lt;/div&gt;
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>PYGMENTS_RST_OPTIONS = {'classprefix': 'pgcss', 'linenos': 'table'}
  </code></pre>
  
  <p>Can I get line numbers to show up? Yes.
  Can I get them to continue to the next code block? No.
  And that is why I want to use CSS line numbering...its way easier to control when the numbering starts and stops.</p>
  
  <p>Any help would be greatly appreciated, I've been messing with this for a few hours.</p>