chat-engine-markdown

Renders markdown from the message event.

Source:

require('chat-engine-markdown')(configopt, eventopt, propopt)

Source:
Example
chat.plugin(ChatEngineCore.plugin['chat-engine-markdown']());
chat.on('message', (payload) => {
   console.log(payload.data.text);
});

chat.emit('message', {
   text: 'This is some *markdown* **for sure**.'
});
// 'This is some <em>markdown</em> <strong>for sure</strong>.
Parameters:
Name Type Attributes Default Description
config Object <optional>

The config object

event String <optional>
"message"

The ChatEngine event where markdown will be parsed

prop String <optional>
"data.text"

The event property value where markdown should be parsed.

Requires