jsarafajr / slackify-markdown

Convert markdown into Slack-specific markdown
MIT License
129 stars 25 forks source link

Add HTML support with table and br special processing #44

Open greggbjensen opened 8 months ago

greggbjensen commented 8 months ago

Added functionality to process tables and line breaks then remove any HTML that cannot be processed to Slack Markdown.

<table>
  <tr>
    <td>row 1 cell 1</td>
    <td>row 1 cell 2</td>
  </tr>
  <tr>
    <td>row 2 cell 1</td>
    <td>row 2 cell 2</td>
  </tr>
</table>

to

row 1 cell 1  row 1 cell 2
row 2 cell 1  row 2 cell 2
greggjensencart commented 8 months ago

@jsarafajr, if you want to add me as a contributor, I would be happy to help keep this up to date.