Pulling blog data from Wordpress using HTTP node to Markdown but output shows \n instead of showing new line break

I am using the HTTP Request node to pull all my blog post data off of my website which in the end I want to upload some of the data into Airtable.

Issue: After running the HTTP request I am using the Markdown node to format the data into a better human readable text version using the HTML to Markdown version. After running the Markdown node the data is showing \n instead of showing the line break or new paragraph.

How do I fix this so the \n or \n\n or ## isn’t showing in the output and shows the new line or actual paragraphs with text? I tried using the Line Start Escape Pattern and Text Replacement Pattern options to try and replace the \n with
for the new linebreak but it doesn’t change the output at all.

This is what the output is showing after using the Markdown:

As we step into the upcoming season, let’s get talk about the essential rules that’ll make your batting practice a home run for everyone involved.\n\n## Time Management: Respect the Clock and Others\n\nListen up, my friends! If there’s one thing I’ve learned from years of coaching softball, it’s that time management in the batting cages is crucial. You have to respect the clock and your fellow players, or things can get messy really quick.

This is the output I want.

As we step into the upcoming season, let’s get talk about the essential rules that’ll make your batting practice a home run for everyone involved.

Time Management: Respect the Clock and Others

Listen up, my friends! If there’s one thing I’ve learned from years of coaching softball, it’s that time management in the batting cages is crucial. You have to respect the clock and your fellow players, or things can get messy really quick.

Any help or recommendations on how to get a better human readable version for Airtable upload is appreciate.

Information on your n8n setup

  • **n8n version: [email protected]
  • n8n EXECUTIONS_PROCESS setting default
  • Running n8n via n8n cloud
  • Operating system: macOS 15.3.2

If you’re storing the Markdown in a field (e.g., {{$json["content"]}}), update it like this {{$json[“content”].replace(/\n\n/g, “\n\n”).replace(/\n/g, “\n\n”)}}

1 Like

I am storing the Markdown in a field but where do I put this?{{$json[“content”].replace(/\n\n/g, “\n\n”).replace(/\n/g, “\n\n”)}}

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.