Output Markdown not valid

Hi guys,

I have a strange problem with my Agent: https://app.mindstudio.ai/agents/obsidian-note-creator-2de01892/run

I can embed only 1 screenshot.

What it does in the last generate text block is:

This is an enriched summary of a web page from this url:
{{url}}

The summary:
{{perplexity_summary}}

- extract 2 to 4 relevant tags from the summary
- Convert the summary to an obsidian optimized markdown format for copy and paste import
- add a frontmatter to the markdown where you safe the url and the extracted tags
- format the (yaml) frontmatter like this: "---
tags:
  - tag1
  - tag2"
- only output the pure markdown block without any other info

The output appears to be valid like I want it.

But when I copy the markdown block into Obsidian it looks like this:

When I paste into any text editor first and copy and paste from the editor into Obsidian it works as intended: The Markdown is rendered correctly