input string
transformed string with unchanged inline code segments
Provide a unique identifier for later replacement.
Replace Markdown bold, italic, and unordered lists with their Slack markup equivalent.
string with Markdown
string with Slack markup
Replace Markdown image links with just the image URL.
string with Markdown
string with image URLs
Replace tags with just the image URL.
string which may have img tags
string with img tags replaced
Replace Markdown links with Slack markup links.
string with Markdown
string with Slack markup
Convert sections of text from GitHub-flavored Markdown to Slack message markup. This function should not be passed inline code or code blocks. The ordering of the functions called is significant.
string containing Markdown
string converted to Slack markup
Replace named Markdown links with parenthesized links.
string which may have named Markdown links
string with explicit links
Convert GitHub-flavored Markdown to Slack message markup. This is not a complete implementation of a Markdown parser, but it does its level best.
string containing markdown
string with Slack markup
Try to handle adjacent HTML and Markdown elements that cannot be adjacent in Slack markup. Used as the function argument of replace.
the full match
the URL
trailing space, if it exists
properly padded replacement string
Generated using TypeDoc
Transform everything but the interior of inline code segments, i.e., `code`, but still be able to process elements that wrap around inlide code formatting.