UNPKG

@atomist/slack-messages

Version:

Atomist utilities for creating formatted Slack messages

46 lines 1.42 kB
/** * Replace named Markdown links with parenthesized links. * * @param text string which may have named Markdown links * @return string with explicit links */ export declare function convertNamedLinks(text: string): string; /** * Replace <img> tags with just the image URL. * * @param text string which may have img tags * @return string with img tags replaced */ export declare function convertInlineImages(text: string): string; /** * Replace Markdown image links with just the image URL. * * @param text string with Markdown * @return string with image URLs */ export declare function convertImageLinks(text: string): string; /** * Replace Markdown links with Slack markup links. * * @param text string with Markdown * @return string with Slack markup */ export declare function convertLinks(text: string): string; /** * Replace Markdown bold, italic, and unordered lists with their Slack * markup equivalent. * * @param text string with Markdown * @return string with Slack markup */ export declare function convertFormat(text: string): string; /** * Convert GitHub-flavored Markdown to Slack message markup. This is * not a complete implementation of a Markdown parser, but it does its * level best. * * @param text string containing markdown * @return string with Slack markup */ export declare function githubToSlack(text: string): string; //# sourceMappingURL=Markdown.d.ts.map