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', ); }); });