Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Approval Markdown Incorrect Styling - Bug?

(0) ShareShare
ReportReport
Posted on by 33

I have a flow that builds a string, containing markdown, and inserts it into the details field in an approval action:

Codesidian_0-1702387514286.pngCodesidian_1-1702387534285.png

and in the approval action:

Codesidian_2-1702387554300.png

 

The additional info string is populated like this:

Codesidian_3-1702387596957.png

The string that's being stored in a list item shows valid markdown:

Codesidian_4-1702387661939.png

The actual run history of the flow shows valid markdown:

Codesidian_5-1702387701502.png

However, this is the approval email:

Codesidian_6-1702387734799.png

The first comment should not be a header. It isn't stored anywhere with that syntax, and the run history doesn't show it with that syntax. There's also an issue with the horizontal rules, that although undocumented, do seem to render sometimes. So what is going on here and does anybody know how to fix this? 

  • Verified answer
    Codesidian Profile Picture
    33 on at
    Re: Approval Markdown Incorrect Styling - Bug?

    Managed to figure this out. The problem is with spacing. For some reason this happens when single line spacing is used such as:

     

    # Header
    
    *italic text* normal text:
    hello world
    
    *italic text* normal text:
    Lorem ipsum dolor sit amet

     

    Switching to double line spacing, which i believe some flavours of markdown require, renders the output as expected. Double line spacing would be like so:

     

    # Header
    
    
    *italic text* normal text:
    
    hello world
    
    
    *italic text* normal text:
    
    Lorem ipsum dolor sit amet

     

    Where a full break would be the next line and two breaks create a space between the paragraph lines. This seems to contradict the documentation on this topic outlined here. Anyway, hope that helps anybody who may stumble upon this. 

     

    Will just add the power automate examples: 

    Codesidian_0-1702477999448.png

    ^ how the additional information list field is populated.

     

    Codesidian_2-1702478029236.png

    ^ the additional information var

     

    Codesidian_1-1702478016372.png

    ^ Approval action

     

    Codesidian_3-1702478112347.png

    ^ Final approval output email. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1