russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.43k stars 599 forks source link

Support single dash table define #707

Open zyxkad opened 1 year ago

zyxkad commented 1 year ago

For, example, if we have the following markdown:

| F1 | F2 | F3 |
| - | - | - |
| 1 | 2 | 3 |

Should be render like https://gist.github.com/zyxkad/dfee41cf4a1cbdd75c04e8df3253c11b

<table>
  <thead>
    <tr>
      <th>F1</th>
      <th>F2</th>
      <th>F3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>2</td>
      <td>3</td>
    </tr>
  </tbody>
</table>

But blackfriday cannot render it: https://go.dev/play/p/JvlKF5PozFh

<p>| F1 | F2 | F3 |
| - | - | - |
| 1 | 2 | 3 |</p>