mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
11 lines
349 B
CoffeeScript
11 lines
349 B
CoffeeScript
|
Autolinker = require 'autolinker'
|
||
|
{MessageStoreExtension} = require 'nylas-exports'
|
||
|
|
||
|
class AutolinkerExtension extends MessageStoreExtension
|
||
|
|
||
|
@formatMessageBody: (message) ->
|
||
|
# Apply the autolinker pass to make emails and links clickable
|
||
|
message.body = Autolinker.link(message.body, {twitter: false})
|
||
|
|
||
|
module.exports = AutolinkerExtension
|