slack-message-parser

JavaScript library for parsing Slack message format (mrkdwn)

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
# Examples

## HTML + TypeScript

This example shows the most basic usage of the library.
The code handles only a limited set of node type for demonstration purpose.

<iframe src="https://codesandbox.io/embed/gracious-rgb-kmqbu?fontsize=14&module=%2Fsrc%2Findex.ts&view=editor" loading="lazy" title="Plain HTML with TypeScript example" allow="" sandbox="allow-popups allow-scripts allow-same-origin"></iframe>

## React + TypeScript

This example shows how to construct React node without using `dangerouslySetInnerHTML`.
The code handles only a limited set of node type for demonstration purpose.

<iframe src="https://codesandbox.io/embed/condescending-heyrovsky-y5jw3?fontsize=14&module=%2Fsrc%2FSlackMessage.tsx" loading="lazy" title="React with TypeScript example" allow="" sandbox="allow-popups allow-scripts allow-same-origin"></iframe>