web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Approval Markdown Inco...
Power Automate
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? 

Categories:
I have the same question (0)
  • Verified answer
    Codesidian Profile Picture
    33 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard