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.ts

21 lines
633 B

import { Meteor } from 'meteor/meteor';
import { callbacks } from '../../../app/callbacks/client';
import { settings } from '../../../app/settings/client';
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',
);
});
});