@rocket.chat/message-parser
TypeScript icon, indicating that this package has built-in type declarations

0.31.28 • Public • Published

Rocket.Chat

@rocket.chat/message-parser

Rocket.Chat parser for messages


npm@latest npm@next npm downloads License: MIT

deps npm bundle size

Description

Rocket.Chat grammar with the purpose of parsing the messages of the rocket chat, converting text to an AST tree.

The grammar provides support for markdown, mentions and emojis.

Supported markup

  • quotes
  • bold/italic/strike
  • ordered lists
  • unordered lists
  • task lists
  • phone numbers
  • mentions
  • emoji
  • colors
  • URI's
  • mentions users/channels

Contributing

Contributions, issues, and feature requests are welcome!
Feel free to check the issues.

Whenever you find a grammar-related bug, start by inserting the test case.

We are open to other tags/markups, as long as they don't generate unexpected behavior.

Observations and known issues

  • Nested lists are unsupported
  • URL rule doesn't allow whitespace, (, or )

Readme

Keywords

none

Package Sidebar

Install

npm i @rocket.chat/message-parser

Weekly Downloads

1,415

Version

0.31.28

License

MIT

Unpacked Size

1.15 MB

Total Files

16

Last publish

Collaborators

  • rocketchat-buildmaster
  • geekgonecrazy
  • rodrigok
  • sing.li
  • diegosampaio
  • gazzo
  • dgubert
  • tassoevan