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.
13 lines
412 B
13 lines
412 B
import {gristIconLink} from 'app/client/ui2018/links';
|
|
import escape from 'lodash/escape';
|
|
import {marked} from 'marked';
|
|
|
|
export const renderer = new marked.Renderer();
|
|
|
|
renderer.link = ({href, text}) => gristIconLink(href, text).outerHTML;
|
|
|
|
// Disable Markdown features that we aren't ready to support yet.
|
|
renderer.hr = ({raw}) => raw;
|
|
renderer.html = ({raw}) => escape(raw);
|
|
renderer.image = ({raw}) => raw;
|