neutronX / django-markdownx

Comprehensive Markdown plugin built for Django
https://neutronx.github.io/django-markdownx/
Other
863 stars 153 forks source link

Are the tables supported? #97

Closed trecker closed 6 years ago

trecker commented 6 years ago

Does this support table syntax,

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned |       |
| col 2 is      | centered      |       |
| zebra stripes | are neat      |       |

Result:

<p>| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned |  |
| col 2 is      | centered      |    |
| zebra stripes | are neat      |     |</p>

Need:

Tables Are Cool
col 3 is right-aligned
col 2 is centered
zebra stripes are neat
<table>
<thead>
<tr>
<th>Tables</th>
<th align="center">Are</th>
<th align="right">Cool</th>
</tr>
</thead>
<tbody>
<tr>
<td>col 3 is</td>
<td align="center">right-aligned</td>
<td align="right"></td>
</tr>
<tr>
<td>col 2 is</td>
<td align="center">centered</td>
<td align="right"></td>
</tr>
<tr>
<td>zebra stripes</td>
<td align="center">are neat</td>
<td align="right"></td>
</tr></tbody></table>
xenatisch commented 6 years ago

It depends on the Markdown interpreter that you use. See the documentations for additional information.

trecker commented 6 years ago

I use the default settings

xenatisch commented 6 years ago

But you want a special feature, so you need to make sure that the specific feature you're looking for is either supported by the Markdown interpreter, or the interpreter has an extension for supporting that feature. Here is a list of extensions available to you.

You can use appropriate settings as explained here in the documentations to enable the use of that a specific extension in the default interpreter.

trecker commented 6 years ago

Thank you very much!