The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/startup/renderNotification/markdown.js

16 lines
602 B

import { Meteor } from 'meteor/meteor';
import { callbacks } from '../../../app/callbacks';
import { settings } from '../../../app/settings';
Meteor.startup(() => {
const options = {
supportSchemesForLink: settings.get('Markdown_SupportSchemesForLink'),
};
import('../../../app/markdown/client').then(({ createMarkdownNotificationRenderer }) => {
const renderNotification = createMarkdownNotificationRenderer(options);
callbacks.remove('renderNotification', 'filter-markdown');
callbacks.add('renderNotification', renderNotification, callbacks.priority.HIGH, 'filter-markdown');
});
});