How to add colspan and rowspan tag in whitelist for html table?


(Mingxia) #1

Hi all:

in my site, some important posts will use table, and need use colspan and rowspan , but i find these tags can’t be set, so it will be ignore.

<table border="1">
<tr>
  <th colspan="2">number</th>
</tr>
<tr>
  <td>555 77 854</td>
  <td>555 77 855</td>
</tr>
</table>

just show like this: ( colspan=“2” will be ignore)

number
555 77 854 555 77 855

now how i can add these support?


#2

Table support is not currently built in with markdown. There are some changes to be made to be made to markdown in a future release nut no guarantee when.

Check this topic
https://meta.discourse.org/t/markdown-table-support-in-a-discourse-topic/13546/99?u=mikechristopher&source_topic_id=57973


(Mingxia) #3

thanks !:slight_smile: