Transform HTML to Markdown formats

Recipe ToolsDeveloper ToolMarketing

What it does

When a function call receives HTML text, this automation converts it to standard Markdown and Slack Markdown. Both versions are logged so downstream systems can retrieve the formatted output.

Who it's for

Engineering teams who need to transform HTML content into Markdown for documentation and Slack messages.

How teams use this

Format documentation from HTML sources

Transform HTML documentation to Markdown so it can be stored in version control and shared across teams. The automation handles the conversion without manual formatting work.

Post formatted content to Slack channels

Use the Slack Markdown output to send rich, properly formatted messages to Slack channels. The conversion ensures links, lists, and emphasis render correctly in Slack.

Handle custom HTML tags in conversion

Extend the JavaScript code to recognize and convert custom HTML tags specific to your platform. Set additional transformation rules before the Markdown output is logged.

How it works

  1. Receive HTML content for conversion. A function call passes HTML text to this automation, starting the conversion process in real time through Workato Recipe Function.
  2. Convert to standard Markdown format. Execute JavaScript code using the html2markdown library to transform the HTML into standard Markdown format for documentation systems.
  3. Convert to Slack Markdown format. Execute JavaScript code using html2markdown to transform the HTML into Slack Markdown format so text displays correctly in Slack messages.
  4. Log both converted versions. Log the standard Markdown and Slack Markdown versions to the job report so other systems can retrieve and use the formatted output.