Question

How to convert HTML into Markdown in proper way?

  • 13 October 2022
  • 3 replies
  • 807 views

I have this kind of HTML 

<div>Hello everyone!</div><div><ul><li>this is a first list item</li><li>second one</li><li>third one</li><li><span style="color:#b22222">...</span></li><li>last but not the least</li></ul></div>

 

This is after Zapier convert:

Hello everyone! * this is a first list item * second one * third one ... * last but not the least

 

This is result what i need: 

Hello everyone!

  • * this is a first list item
  • * second one
  • * third one ...
  • * last but not the least

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +14

Hi @devopsuser 

Good question.

You could use a Code step instead to transform the HTML to the desired Markdown format: https://zapier.com/apps/code/help

Userlevel 7
Badge +14

@devopsuser 

Or you can use a Formatter > Text > Replace step like this:

 

Userlevel 4
Badge +7

Hey there @devopsuser , were you able to give this a try?  It looks like Troy has a great suggestion here that I think should help!  Let us know if you run into any snags =)