How to pull csv into DataTables

Right… yes, I didn’t realise this was specific to that documentation theme. I guess maybe this is going to be too complex for me!

My static html for the table that words if I write it myself is:

<table class="display">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead>
<tr class="header">
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td markdown="span">First column **fields**</td>
<td markdown="span">Some descriptive text. This is a markdown link to [Google](http://google.com). Or see [some link][mydoc_tags].</td>
</tr>
<tr>
<td markdown="span">Second column **fields**</td>
<td markdown="span">Some more descriptive text.
</td>
</tr>
</tbody>
</table>

The HTML generated in the example I am trying to make work, but doesn’t work, is as follows:

<table class="display">
    <tr>
        <th>Field</th>
        <th>Description</th>
    </tr>
    <tr class="row1">
<td class="col1">
      First column **fields**
    </td>
<td class="col2">
      Some descriptive text. This is a markdown link to [Google](http://google.com). Or see [some link][mydoc_tags].
    </td>
</tr>

    <tr class="row1">
<td class="col1">
      Second column **fields**
    </td>
<td class="col2">
      Some more descriptive text.
    </td>
</tr>
</table>

I am not a genius but I don’t really see why this should be dramatically different for the purpose of generating it as a datatable though… a lot of it does look the same?