Markdown processing for code blocks

Let’s say I have following markdown content:

    ```
    a
    b
    c
    ```

Blackfriday returns following html for it:

    <pre>
      <code>
        a
        b
        c
      </code>
    </pre>

I would like to get the following instead:

    <pre>
      <code>a</code>
      <code>b</code>
      <code>c</code>
    </pre>

Is there any way to change how code blocks are processed?
I don’t want to use any code highlighters, I just want to apply minimal set of styles, and it requires for every line to be in it’s own tag (spans should also do).
I can solve it in JS, but I’d like to have a static solution.