在botframwork Text属性中格式化文本

时间:2016-07-11 13:57:53

标签: botframework

我正在尝试返回一个字符串,其中包含一些新的行字符,如下例所示,但它似乎没有被不同的客户端正确处理。无论如何,我可以在一个简单的文本响应中添加一个新行。

Here are few things I can help you with:\r\nFind a restaurants...

1 个答案:

答案 0 :(得分:0)

BotFramework uses Markdown. To represent a paragraph break you need to have a blank line (i.e. "\n\n")

Markdown like this:

This is
paragraph one

This is 
paragraph two

Will be rendered as

This is paragraph one
This is paragraph two

See documentation at: http://docs.botframework.com/en-us/csharp/builder/sdkreference/activities.html