Markdown parsing from qnamaker

Hi,

I try to show a nice card by using API result from qnamaker azure.

I receive attachments with hero card.

The response sent is formatted as markdown:
A new way to interact
[FIND OUT MORE](https://xxxx/concept/)

![Img 821](https://www.xxxx.com/wp-content/uploads/2020/05/business.jpg)
Then I use the library https://github.com/xoofx/markdig and convert the message in html
Once I have the html code how can I embed it in a card?
I would like to show a card with html inside. 
Thanks,

1 Reply 1 reply marked as answer

KK Karthikraja Kalaimani Syncfusion Team May 3, 2021 01:28 PM UTC

Hi Alexis,  

SfChat allows to load custom templates for all incoming and outgoing message using SfChat.MessageTemplate property. You can customize the message views as per your liking with the support to load template for each individual message by using a custom template selector derived from ChatMessageTemplateSelector and assigning it to SfChat.MessageTemplate as shown below. Load custom templates based on the message type, text, author, etc. The limits are endless.. Please refer to the below UG document to know about Template Messages.  
 


Marked as answer
Loader.
Up arrow icon