Default formatting

I have a problem formatting markdowns of the Text property in a Hero map. Here is a sample code:

HeroCard heroCard = new HeroCard() { Text= $"**Place1**: Berlin \n\n**Place2**: Hamburg", Buttons = cardButtons }; 

He does not do linear brakes. Also tried \ r \ n, nothing works. It looks like this:

enter image description here

How can I put text at the bottom of the hero card?

+7
c # botframework
source share
1 answer

As already mentioned, this refers to a channel (a client - for example, an emulator, skype, facebook, its own direct-line client) that implements markup support, as the text is sent as markdown in response to json.

However, at the moment you are likely to find that both the emulator and the skip will display markdowns in the text element, but will ignore markdowns on textual attachment elements, for example.

 HeroCard heroCard = new HeroCard() { Text= "Booo - no *markdown* supported here", Buttons = cardButtons }; 

against

 var reply = activity.CreateReply("**Lovely lovely markdown**\n\n *yey!*"); var heroCard = new HeroCard() { Text = "Booo - no *markdown* supported here", Buttons = cardButtons }; reply.Attachments = new List<Attachment> { hero.ToAttachment() }; 

I show some examples of rich conversations here and how they display on the emulator vs skype desktop vs skype app va skype web, which helps.

+1
source share

All Articles